pub struct SectorHeader { /* private fields */ }Trait Implementations§
Source§impl DiskStruct for SectorHeader
impl DiskStruct for SectorHeader
Source§fn update_from_bytes(&mut self, dat: &[u8]) -> Result<(), DiskStructError>
fn update_from_bytes(&mut self, dat: &[u8]) -> Result<(), DiskStructError>
update a structure from a byte stream, OK to use on trait objects
Source§fn from_bytes(dat: &[u8]) -> Result<Self, DiskStructError>where
Self: Sized,
fn from_bytes(dat: &[u8]) -> Result<Self, DiskStructError>where
Self: Sized,
create a structure from a byte stream, requires concrete type
Source§fn from_bytes_adv(
bytes: &[u8],
ptr: &mut usize,
) -> Result<Self, DiskStructError>where
Self: Sized,
fn from_bytes_adv(
bytes: &[u8],
ptr: &mut usize,
) -> Result<Self, DiskStructError>where
Self: Sized,
convenience function to call
from_bytes and increment ptr by len()Auto Trait Implementations§
impl Freeze for SectorHeader
impl RefUnwindSafe for SectorHeader
impl Send for SectorHeader
impl Sync for SectorHeader
impl Unpin for SectorHeader
impl UnwindSafe for SectorHeader
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