pub struct Chunk<'a> {
pub kind: [u8; 4],
pub data: &'a [u8],
}Expand description
A part of a container: its four-character kind and its bytes.
Fields§
§kind: [u8; 4]The part’s four-character kind (DXIL, RDEF, …).
data: &'a [u8]The part’s bytes, without its kind and length.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Chunk<'a>
impl<'a> Freeze for Chunk<'a>
impl<'a> RefUnwindSafe for Chunk<'a>
impl<'a> Send for Chunk<'a>
impl<'a> Sync for Chunk<'a>
impl<'a> Unpin for Chunk<'a>
impl<'a> UnsafeUnpin for Chunk<'a>
impl<'a> UnwindSafe for Chunk<'a>
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