pub struct IndexBlock { /* private fields */ }
Implementations§
Source§impl IndexBlock
impl IndexBlock
pub fn new( compressed_data: &[u8], compression_type: CompressionType, ) -> Result<Self>
pub fn get_entries(&self) -> Result<Vec<IndexEntry>>
pub fn find_block_for_key( &self, target_key: &[u8], ) -> Result<Option<BlockHandle>>
pub fn get_all_block_handles(&self) -> Result<Vec<BlockHandle>>
Auto Trait Implementations§
impl Freeze for IndexBlock
impl RefUnwindSafe for IndexBlock
impl Send for IndexBlock
impl Sync for IndexBlock
impl Unpin for IndexBlock
impl UnwindSafe for IndexBlock
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