#[repr(u32)]pub enum Format {
ZSTD_f_zstd1 = 0,
ZSTD_f_zstd1_magicless = 1,
}Variants§
Implementations§
Source§impl Format
impl Format
Sourcepub const fn frame_header_size_min(self) -> usize
pub const fn frame_header_size_min(self) -> usize
This function replaces the ZSTD_FRAMEHEADERSIZE_MIN macro.
Returns the minimum size of the frame header.
Sourcepub const fn starting_input_length(self) -> usize
pub const fn starting_input_length(self) -> usize
This function replaces the ZSTD_FRAMEHEADERSIZE_PREFIX macro.
Returns the minimum input size required to query the frame header size.
Trait Implementations§
Source§impl TryFrom<ZSTD_format_e> for Format
impl TryFrom<ZSTD_format_e> for Format
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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