pub struct IndexRoot {
pub header: IndexRootHeader,
pub shards: Vec<ShardEntry>,
pub directory_hint_shards: Vec<DirectoryHintShardEntry>,
}Fields§
§header: IndexRootHeader§shards: Vec<ShardEntry>§directory_hint_shards: Vec<DirectoryHintShardEntry>Implementations§
Source§impl IndexRoot
impl IndexRoot
pub fn parse( bytes: &[u8], has_dictionary: bool, limits: MetadataLimits, ) -> Result<Self, FormatError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn candidate_shard_indexes_for_hash( &self, target_hash: [u8; 8], scan_cap_per_direction: usize, ) -> Result<Vec<usize>, FormatError>
pub fn candidate_shards_for_path( &self, normalized_path: &[u8], limits: MetadataLimits, ) -> Result<Vec<usize>, FormatError>
Trait Implementations§
impl Eq for IndexRoot
impl StructuralPartialEq for IndexRoot
Auto Trait Implementations§
impl Freeze for IndexRoot
impl RefUnwindSafe for IndexRoot
impl Send for IndexRoot
impl Sync for IndexRoot
impl Unpin for IndexRoot
impl UnsafeUnpin for IndexRoot
impl UnwindSafe for IndexRoot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more