pub struct ChunkType(pub [u8; 4]);Expand description
A four-byte chunk type tag.
Tuple Fields§
§0: [u8; 4]Implementations§
Source§impl ChunkType
impl ChunkType
Sourcepub fn is_compressed(&self) -> bool
pub fn is_compressed(&self) -> bool
Whether the payload carries a zstd frame, per the normative table in
[spec/12-compression.md] section 6.3.
LAYR is excluded, and not because it is uncompressed: its payload is a
version field plus a frame the container does not itself decompress, in
the same way EXTD’s compression is per-extension and PREV’s is none.
EXTD is excluded too: the frame is opaque to this crate, so the caller
decides.
Trait Implementations§
impl Copy for ChunkType
impl Eq for ChunkType
Source§impl Ord for ChunkType
impl Ord for ChunkType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ChunkType
impl PartialOrd for ChunkType
impl StructuralPartialEq for ChunkType
Auto Trait Implementations§
impl Freeze for ChunkType
impl RefUnwindSafe for ChunkType
impl Send for ChunkType
impl Sync for ChunkType
impl Unpin for ChunkType
impl UnsafeUnpin for ChunkType
impl UnwindSafe for ChunkType
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