pub struct TOAHeader { /* private fields */ }Expand description
TOA file header containing format metadata and compression parameters.
Implementations§
Source§impl TOAHeader
impl TOAHeader
Sourcepub fn from_options(options: &TOAOptions) -> Self
pub fn from_options(options: &TOAOptions) -> Self
Create a new TOA header from options.
Sourcepub fn capabilities(&self) -> u8
pub fn capabilities(&self) -> u8
Get the capabilities field.
Sourcepub fn error_correction(&self) -> ErrorCorrection
pub fn error_correction(&self) -> ErrorCorrection
Get the error correction level from the capabilities.
Sourcepub fn block_size(&self) -> u64
pub fn block_size(&self) -> u64
Get the actual block size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TOAHeader
impl RefUnwindSafe for TOAHeader
impl Send for TOAHeader
impl Sync for TOAHeader
impl Unpin for TOAHeader
impl UnwindSafe for TOAHeader
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