Struct bitar::CompressedChunk
source · pub struct CompressedChunk { /* private fields */ }
Expand description
A compressed chunk.
Implementations§
source§impl CompressedChunk
impl CompressedChunk
sourcepub fn decompress(self) -> Result<Chunk, CompressionError>
pub fn decompress(self) -> Result<Chunk, CompressionError>
Decompress the chunk.
sourcepub fn compression(&self) -> Option<CompressionAlgorithm>
pub fn compression(&self) -> Option<CompressionAlgorithm>
Compression used for chunk.
pub fn into_inner(self) -> (Option<CompressionAlgorithm>, Bytes)
Trait Implementations§
source§impl Clone for CompressedChunk
impl Clone for CompressedChunk
source§fn clone(&self) -> CompressedChunk
fn clone(&self) -> CompressedChunk
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 moreAuto Trait Implementations§
impl !Freeze for CompressedChunk
impl RefUnwindSafe for CompressedChunk
impl Send for CompressedChunk
impl Sync for CompressedChunk
impl Unpin for CompressedChunk
impl UnwindSafe for CompressedChunk
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