pub struct DirectoryHintTable {
pub header: DirectoryHintTableHeader,
pub entries: Vec<DirectoryHintEntry>,
pub shard_row_indexes: Vec<u32>,
pub string_pool: Vec<u8>,
/* private fields */
}Fields§
§header: DirectoryHintTableHeader§entries: Vec<DirectoryHintEntry>§shard_row_indexes: Vec<u32>§string_pool: Vec<u8>Implementations§
Source§impl DirectoryHintTable
impl DirectoryHintTable
pub fn parse( bytes: &[u8], locating_shard: &DirectoryHintShardEntry, index_root_shard_count: u32, limits: MetadataLimits, ) -> Result<Self, FormatError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn entry_path(&self, entry_index: usize) -> Option<&[u8]>
pub fn lookup_directory_index( &self, normalized_dir_path: &[u8], ) -> Option<usize>
pub fn shard_rows_for_entry(&self, entry_index: usize) -> Option<&[u32]>
Trait Implementations§
Source§impl Clone for DirectoryHintTable
impl Clone for DirectoryHintTable
Source§fn clone(&self) -> DirectoryHintTable
fn clone(&self) -> DirectoryHintTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectoryHintTable
impl Debug for DirectoryHintTable
Source§impl PartialEq for DirectoryHintTable
impl PartialEq for DirectoryHintTable
Source§fn eq(&self, other: &DirectoryHintTable) -> bool
fn eq(&self, other: &DirectoryHintTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DirectoryHintTable
impl StructuralPartialEq for DirectoryHintTable
Auto Trait Implementations§
impl Freeze for DirectoryHintTable
impl RefUnwindSafe for DirectoryHintTable
impl Send for DirectoryHintTable
impl Sync for DirectoryHintTable
impl Unpin for DirectoryHintTable
impl UnsafeUnpin for DirectoryHintTable
impl UnwindSafe for DirectoryHintTable
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