Enum rusty_ulid::crockford::DecodingError
source · pub enum DecodingError {
InvalidLength,
InvalidChar(char),
DataTypeOverflow,
}
Expand description
Error that can occur while decoding a crockford Base32 string.
Variants
InvalidLength
The length of the parsed string does not conform to requirements.
InvalidChar(char)
The parsed string contains a character that is not allowed in a crockford Base32 string.
DataTypeOverflow
Parsing the string overflowed the result value bits.
Trait Implementations
sourceimpl Debug for DecodingError
impl Debug for DecodingError
sourceimpl Display for DecodingError
impl Display for DecodingError
sourceimpl Error for DecodingError
impl Error for DecodingError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<DecodingError> for DecodingError
impl PartialEq<DecodingError> for DecodingError
sourcefn eq(&self, other: &DecodingError) -> bool
fn eq(&self, other: &DecodingError) -> bool
impl StructuralPartialEq for DecodingError
Auto Trait Implementations
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more