pub struct ChunkHeaderPacked { /* private fields */ }Implementations§
Source§impl ChunkHeaderPacked
impl ChunkHeaderPacked
pub fn unpack_warn<W: Warn<Warning>>(self, warn: &mut W) -> ChunkHeader
pub fn unpack(self) -> ChunkHeader
Trait Implementations§
Source§impl AsBytes for ChunkHeaderPacked
impl AsBytes for ChunkHeaderPacked
Source§impl Clone for ChunkHeaderPacked
impl Clone for ChunkHeaderPacked
Source§fn clone(&self) -> ChunkHeaderPacked
fn clone(&self) -> ChunkHeaderPacked
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromBytes for ChunkHeaderPacked
impl FromBytes for ChunkHeaderPacked
Source§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes as a &[Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
Source§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moreSource§impl FromZeroes for ChunkHeaderPackedwhere
u8: FromZeroes,
impl FromZeroes for ChunkHeaderPackedwhere
u8: FromZeroes,
impl Copy for ChunkHeaderPacked
Auto Trait Implementations§
impl Freeze for ChunkHeaderPacked
impl RefUnwindSafe for ChunkHeaderPacked
impl Send for ChunkHeaderPacked
impl Sync for ChunkHeaderPacked
impl Unpin for ChunkHeaderPacked
impl UnsafeUnpin for ChunkHeaderPacked
impl UnwindSafe for ChunkHeaderPacked
Blanket Implementations§
Source§impl<T> AsBytesExt for T
impl<T> AsBytesExt for T
fn as_byte_array(&self) -> &Self::ByteArray
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