pub enum CoderFactoryError {
AlphabetNotUniform,
AlphabetTooSmall,
DelimiterOverlapping,
SymbolsNotUnique,
}
Expand description
Error type returned by the Coder
factory methods
with_uniform_alphabet
and
with_delimiter
.
Variants§
AlphabetNotUniform
The symbols in the alphabet differ in length.
AlphabetTooSmall
The alphabet contains too few symbols.
DelimiterOverlapping
The delimiter is part of a symbol.
SymbolsNotUnique
There are duplicate symbols in the alphabet.
Trait Implementations§
Source§impl Debug for CoderFactoryError
impl Debug for CoderFactoryError
Source§impl PartialEq for CoderFactoryError
impl PartialEq for CoderFactoryError
impl StructuralPartialEq for CoderFactoryError
Auto Trait Implementations§
impl Freeze for CoderFactoryError
impl RefUnwindSafe for CoderFactoryError
impl Send for CoderFactoryError
impl Sync for CoderFactoryError
impl Unpin for CoderFactoryError
impl UnwindSafe for CoderFactoryError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more