Enum cmprsd::huffman::CompressionError
source · pub enum CompressionError {
NoDataToCompress,
DataCannotBeCompressed,
}Expand description
Represents errors that can occure during compression. So far only two are represented.
Variants§
NoDataToCompress
Is what happens when you try to compress and empty string.
DataCannotBeCompressed
It happens when the text to compressed is made of only one repeated character.
Trait Implementations§
source§impl Clone for CompressionError
impl Clone for CompressionError
source§fn clone(&self) -> CompressionError
fn clone(&self) -> CompressionError
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 CompressionError
impl RefUnwindSafe for CompressionError
impl Send for CompressionError
impl Sync for CompressionError
impl Unpin for CompressionError
impl UnwindSafe for CompressionError
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