pub struct CellOffset(pub u32);Expand description
Offset to a cell within hive bins data.
All cell offsets in the REGF format are relative to the start of the hive bins data area (which begins at file offset 4096). This newtype prevents accidentally mixing cell offsets with file offsets.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl BinRead for CellOffset
impl BinRead for CellOffset
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_options: &ReadOptions,
__binrw_generated_var_arguments: Self::Args,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_options: &ReadOptions, __binrw_generated_var_arguments: Self::Args, ) -> BinResult<Self>
Read
Self from the reader using the given ReadOptions and
arguments.Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments.Source§impl Clone for CellOffset
impl Clone for CellOffset
Source§fn clone(&self) -> CellOffset
fn clone(&self) -> CellOffset
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 CellOffset
Source§impl Debug for CellOffset
impl Debug for CellOffset
Source§impl Display for CellOffset
impl Display for CellOffset
impl Eq for CellOffset
Source§impl Hash for CellOffset
impl Hash for CellOffset
Source§impl PartialEq for CellOffset
impl PartialEq for CellOffset
Source§fn eq(&self, other: &CellOffset) -> bool
fn eq(&self, other: &CellOffset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CellOffset
Auto Trait Implementations§
impl Freeze for CellOffset
impl RefUnwindSafe for CellOffset
impl Send for CellOffset
impl Sync for CellOffset
impl Unpin for CellOffset
impl UnsafeUnpin for CellOffset
impl UnwindSafe for CellOffset
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