Struct nt_hive2::CellHeader
source · pub struct CellHeader { /* private fields */ }
Expand description
Represents the header of a Cell. Technically, a cell header only contains the size of the cell as a 32bit value, but CellHeader enriches this by some additional information
Implementations§
source§impl CellHeader
impl CellHeader
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Returns the size of this cell, including the header.
This is not the stored size value, but the absolute value of it.
sourcepub fn contents_size(&self) -> usize
pub fn contents_size(&self) -> usize
Returns the size of the Cell content, which equals to the size of the cell minus the size of its header
sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Trait Implementations§
source§impl BinRead for CellHeader
impl BinRead for CellHeader
§type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
source§fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binread_generated_var_reader: &mut R, __binread_generated_var_options: &ReadOptions, __binread_generated_var_arguments: Self::Args ) -> BinResult<Self>
Read the type from the reader
source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read the type from the reader while assuming no arguments have been passed Read more
source§fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
Read the type from the reader using the specified arguments
fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args ) -> Result<(), Error>
source§impl Debug for CellHeader
impl Debug for CellHeader
source§impl PartialEq for CellHeader
impl PartialEq for CellHeader
source§fn eq(&self, other: &CellHeader) -> bool
fn eq(&self, other: &CellHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CellHeader
impl StructuralPartialEq for CellHeader
Auto Trait Implementations§
impl Freeze for CellHeader
impl RefUnwindSafe for CellHeader
impl Send for CellHeader
impl Sync for CellHeader
impl Unpin for CellHeader
impl UnwindSafe for CellHeader
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