pub struct ChunkRef<'a> { /* private fields */ }
Expand description
Reference to a chunk
Implementations
sourceimpl<'a> ChunkRef<'a>
impl<'a> ChunkRef<'a>
pub fn len(&self) -> usize
pub fn is_ancillary(&self) -> bool
pub fn is_private(&self) -> bool
pub fn is_safe_to_copy(&self) -> bool
pub fn data(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn crc(&self) -> u32
pub fn check_crc(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ChunkRef<'a>
impl<'a> Send for ChunkRef<'a>
impl<'a> Sync for ChunkRef<'a>
impl<'a> Unpin for ChunkRef<'a>
impl<'a> UnwindSafe for ChunkRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more