pub struct BaseAddress(/* private fields */);Expand description
The byte offset at which a file’s HDF5 image begins, as reported by
Superblock::base_address.
Zero for a plain file, and the userblock size for a file that has one — 512
bytes for every .mat file this crate writes. Every address stored in a
file’s metadata is relative to it, so an absolute position in the file is
the stored address plus this. get is the number.
It is a type of its own rather than a u64 because the base and the
addresses it shifts are both file offsets that mean different things, and
mixing them is a defect this crate hit three separate times: a reader that
forgets the base lands inside the userblock, and every test written against
a file without one passes anyway.
Implementations§
Trait Implementations§
Source§impl Clone for BaseAddress
impl Clone for BaseAddress
Source§fn clone(&self) -> BaseAddress
fn clone(&self) -> BaseAddress
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 BaseAddress
Source§impl Debug for BaseAddress
impl Debug for BaseAddress
impl Eq for BaseAddress
Source§impl PartialEq for BaseAddress
impl PartialEq for BaseAddress
impl StructuralPartialEq for BaseAddress
Auto Trait Implementations§
impl Freeze for BaseAddress
impl RefUnwindSafe for BaseAddress
impl Send for BaseAddress
impl Sync for BaseAddress
impl Unpin for BaseAddress
impl UnsafeUnpin for BaseAddress
impl UnwindSafe for BaseAddress
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