Struct yaz0::header::Yaz0Header[][src]

pub struct Yaz0Header {
    pub expected_size: usize,
}

The header on a Yaz0 file.

Fields

expected_size: usize

Expected size of the decompressed file

Implementations

impl Yaz0Header[src]

pub fn new(expected_size: usize) -> Yaz0Header[src]

pub fn parse<R>(reader: &mut R) -> Result<Yaz0Header, Error> where
    R: Read + Seek
[src]

Parses the header of a Yaz0 file, provided via the passed reader. Leaves the read head at the start of the data block.

pub fn write<W>(&self, writer: &mut W) -> Result<(), Error> where
    W: Write
[src]

Writes the header of a Yaz0 file to the passed writer. Leaves the write head at the start of the data block.

Trait Implementations

impl Debug for Yaz0Header[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.