Struct noodles_bgzf::writer::CompressionLevel
source · pub struct CompressionLevel(/* private fields */);
Expand description
A DEFLATE compression level.
Implementations§
source§impl CompressionLevel
impl CompressionLevel
sourcepub fn none() -> Self
pub fn none() -> Self
Returns a compression level to disable compression.
§Examples
use noodles_bgzf::writer::CompressionLevel;
let compression_level = CompressionLevel::none();
Trait Implementations§
source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
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 CompressionLevel
impl Debug for CompressionLevel
source§impl Default for CompressionLevel
impl Default for CompressionLevel
source§impl From<CompressionLevel> for Compression
impl From<CompressionLevel> for Compression
source§fn from(compression_level: CompressionLevel) -> Self
fn from(compression_level: CompressionLevel) -> Self
Converts to this type from the input type.
source§impl From<CompressionLevel> for u8
impl From<CompressionLevel> for u8
source§fn from(compression_level: CompressionLevel) -> Self
fn from(compression_level: CompressionLevel) -> Self
Converts to this type from the input type.
source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
source§fn eq(&self, other: &CompressionLevel) -> bool
fn eq(&self, other: &CompressionLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for CompressionLevel
impl TryFrom<u8> for CompressionLevel
impl Copy for CompressionLevel
impl Eq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnwindSafe for CompressionLevel
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