#[repr(u8)]pub enum Kind {
Zlib = 0,
Lzvn = 1,
Lzfse = 2,
}Variants§
Implementations§
Source§impl Kind
impl Kind
pub const fn name(self) -> &'static str
pub const fn supported(self) -> bool
pub fn compressor(self) -> Option<Compressor>
pub fn header_size(self, block_count: u64) -> u64
pub fn read_block_info<R: Read + Seek>( self, reader: R, orig_file_size: u64, ) -> Result<Vec<BlockInfo>>
pub fn finish<W: Write + Seek>( self, writer: W, block_sizes: &[u32], ) -> Result<()>
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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