pub struct CommentHeader { /* private fields */ }
Trait Implementations§
Source§impl DiskStruct for CommentHeader
impl DiskStruct for CommentHeader
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 CommentHeader
impl RefUnwindSafe for CommentHeader
impl Send for CommentHeader
impl Sync for CommentHeader
impl Unpin for CommentHeader
impl UnwindSafe for CommentHeader
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