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 or given slice of bytes 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§
source§impl Clone for DecodingError
impl Clone for DecodingError
source§fn clone(&self) -> DecodingError
fn clone(&self) -> DecodingError
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 DecodingError
impl Debug for DecodingError
source§impl Display for DecodingError
impl Display for DecodingError
source§impl Error for DecodingError
impl Error for DecodingError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<DecodingError> for DecodingError
impl PartialEq<DecodingError> for DecodingError
source§fn eq(&self, other: &DecodingError) -> bool
fn eq(&self, other: &DecodingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.