pub struct Chunk(pub [u8; 4], pub Box<[u8]>);
Expand description
An IFF chunk represents a single segment of a complete IFF
file. Note: Even though this structure is capable of stroing
data upto usize
but IFF limits that to u32
only.
0
— four-byte identity of chunk.
1
— byte-data encapsulated inside it.
Tuple Fields§
§0: [u8; 4]
§1: Box<[u8]>
Trait Implementations§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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