pub struct IffChunk<'a> {
pub id: [u8; 4],
pub data: &'a [u8],
}Expand description
A parsed IFF chunk from the new spec-based parser: a 4-byte identifier plus a zero-copy slice into the original byte buffer.
Fields§
§id: [u8; 4]The 4-byte ASCII chunk identifier.
data: &'a [u8]The raw data bytes of this chunk (not including id or length header).
Trait Implementations§
impl<'a> Copy for IffChunk<'a>
Auto Trait Implementations§
impl<'a> Freeze for IffChunk<'a>
impl<'a> RefUnwindSafe for IffChunk<'a>
impl<'a> Send for IffChunk<'a>
impl<'a> Sync for IffChunk<'a>
impl<'a> Unpin for IffChunk<'a>
impl<'a> UnsafeUnpin for IffChunk<'a>
impl<'a> UnwindSafe for IffChunk<'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