fn fragmented(
        mut start: u64,
        index: &[MetaDataIndexEntry],
    ) -> Result<bool, MetaDataError> {
        for entry in index {
            if entry.data_start < start {
                return Err(MetaDataError::IndexInconsistent {});
            }
            if entry.data_start > start {
                return Ok(true);
            }
            start = entry.data_end + 1;
        }
        Ok(false)
    }
/// Determines if the data defined by the index is currently fragmented.
/// Returns an error if the index is inconsistent.
Determines if the data defined by the index is currently fragmented.
Returns an error if the index is inconsistent.
Determines if the data defined by the index is currently fragmented . Returns an error if the index is inconsistent .
fn fragmented(
        mut start: u64,
        index: &[MetaDataIndexEntry],
    ) -> Result<bool, MetaDataError> {
        for entry in index {
            if entry.data_start < start {
                return Err(MetaDataError::IndexInconsistent {});
            }
            if entry.data_start > start {
                return Ok(true);
            }
            start = entry.data_end + 1;
        }
        Ok(false)
    }
fn fragmented ( mut start : u64 , index : & [ MetaDataIndexEntry ] , ) -> Result < bool , MetaDataError > { for entry in index { if entry . data_start < start { return Err ( MetaDataError :: IndexInconsistent { } ) ; } if entry . data_start > start { return Ok ( true ) ; } start = entry . data_end + 1 ; } Ok ( false ) }
Determines if the data defined by the index is currently fragmented.
Determines if the data defined by the index is currently fragmented .
start
u64
index
&[MetaDataIndexEntry]