pub struct DecompressBuilder<'markers> { /* private fields */ }
Expand description

Use Decompress static methods instead of creating this directly

Implementations§

source§

impl<'markers> DecompressBuilder<'markers>

source

pub const fn new() -> Self

source

pub fn with_err(self, err: ErrorMgr) -> Self

source

pub const fn with_markers(self, save_markers: &'markers [Marker]) -> Self

source

pub fn from_path<P: AsRef<Path>>( self, path: P ) -> Result<Decompress<BufReader<File>>>

source

pub fn from_file(self, file: File) -> Result<Decompress<BufReader<File>>>

Reads from an already-open File. Use from_reader if you want to customize buffer size.

source

pub fn from_mem(self, mem: &[u8]) -> Result<Decompress<&[u8]>>

Reads from a Vec or a slice.

source

pub fn from_reader<R: BufRead>(self, reader: R) -> Result<Decompress<R>>

Takes BufReader. If you have io::Read, wrap it in io::BufReader::new(read).

Auto Trait Implementations§

§

impl<'markers> RefUnwindSafe for DecompressBuilder<'markers>

§

impl<'markers> !Send for DecompressBuilder<'markers>

§

impl<'markers> !Sync for DecompressBuilder<'markers>

§

impl<'markers> Unpin for DecompressBuilder<'markers>

§

impl<'markers> UnwindSafe for DecompressBuilder<'markers>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.