fn empty_index(
        header: &MetaDataHeader,
    ) -> Result<Vec<MetaDataIndexEntry>, MetaDataError> {
        if header.index_checksum != 0 {
            return Err(MetaDataError::IndexChecksum {});
        }
        Ok(Vec::new())
    }
/// Create an "empty" index array.
// This is called when the header indicates that there are no entries in
// the index, in which case there is nothing further to be read from disk.
// However we still want to ensure that the checksum is valid in this case.
Create an "empty" index array.
This is called when the header indicates that there are no entries in
the index, in which case there is nothing further to be read from disk.
However we still want to ensure that the checksum is valid in this case.
Create an " empty " index array . This is called when the header indicates that there are no entries in the index in which case there is nothing further to be read from disk . However we still want to ensure that the checksum is valid in this case .
fn empty_index(
        header: &MetaDataHeader,
    ) -> Result<Vec<MetaDataIndexEntry>, MetaDataError> {
        if header.index_checksum != 0 {
            return Err(MetaDataError::IndexChecksum {});
        }
        Ok(Vec::new())
    }
fn empty_index ( header : & MetaDataHeader , ) -> Result < Vec < MetaDataIndexEntry > , MetaDataError > { if header . index_checksum != 0 { return Err ( MetaDataError :: IndexChecksum { } ) ; } Ok ( Vec :: new ( ) ) }
Create an "empty" index array.
Create an " empty " index array .
header
&MetaDataHeader