pub struct CompactEntry {
pub pack_offset_bytes: u64,
pub layout: CompactPackLayout,
pub entry_index: usize,
}Expand description
Position and layout information for a compact logical cluster index entry on disk.
Fields§
§pack_offset_bytes: u64On-disk start offset of the pack containing this entry.
layout: CompactPackLayoutLayout of the pack (Pack4B or Pack2B).
entry_index: usizeIndex of this entry within the pack.
Implementations§
Source§impl CompactEntry
impl CompactEntry
pub fn pack_size(&self) -> u64
pub fn entry_count(&self) -> usize
pub fn encode_bits(&self) -> usize
Trait Implementations§
Source§impl Clone for CompactEntry
impl Clone for CompactEntry
Source§fn clone(&self) -> CompactEntry
fn clone(&self) -> CompactEntry
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 moreimpl Copy for CompactEntry
Source§impl Debug for CompactEntry
impl Debug for CompactEntry
impl Eq for CompactEntry
Source§impl PartialEq for CompactEntry
impl PartialEq for CompactEntry
impl StructuralPartialEq for CompactEntry
Auto Trait Implementations§
impl Freeze for CompactEntry
impl RefUnwindSafe for CompactEntry
impl Send for CompactEntry
impl Sync for CompactEntry
impl Unpin for CompactEntry
impl UnsafeUnpin for CompactEntry
impl UnwindSafe for CompactEntry
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