Struct yaz0::header::Yaz0Header [−][src]
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]
R: Read + Seek,
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]
W: Write,
Writes the header of a Yaz0 file to the passed writer. Leaves the write head at the start of the data block.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Yaz0Header
[src]
impl Send for Yaz0Header
[src]
impl Sync for Yaz0Header
[src]
impl Unpin for Yaz0Header
[src]
impl UnwindSafe for Yaz0Header
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,