Struct bitar::Compression
source · pub struct Compression { /* private fields */ }
Expand description
Compression.
Implementations§
source§impl Compression
impl Compression
sourcepub fn try_new(
algorithm: CompressionAlgorithm,
level: u32
) -> Result<Compression, CompressionLevelOutOfRangeError>
pub fn try_new( algorithm: CompressionAlgorithm, level: u32 ) -> Result<Compression, CompressionLevelOutOfRangeError>
Create a new compression of given algorithm and level.
sourcepub fn brotli(
level: u32
) -> Result<Compression, CompressionLevelOutOfRangeError>
pub fn brotli( level: u32 ) -> Result<Compression, CompressionLevelOutOfRangeError>
Create a new brotli compression of given level.
Trait Implementations§
source§impl Clone for Compression
impl Clone for Compression
source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Compression
impl Debug for Compression
source§impl Display for Compression
impl Display for Compression
source§impl PartialEq for Compression
impl PartialEq for Compression
source§fn eq(&self, other: &Compression) -> bool
fn eq(&self, other: &Compression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Compression
impl Eq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
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