pub enum MapIdError {
InvalidHash,
ParseIntError(ParseIntError),
}Expand description
Error type for parsing a Map ID
Variants§
InvalidHash
Error returned when the provided hash is invalid
This can occur in the following conditions:
- The length of the hash is not 24
- The hash contains non-hex characters
ParseIntError(ParseIntError)
Error returned if the provided key is invalid
This can occur in the following conditions:
- Key is larger than a usize
- Key contains non-hex characters
Trait Implementations§
Source§impl Clone for MapIdError
impl Clone for MapIdError
Source§fn clone(&self) -> MapIdError
fn clone(&self) -> MapIdError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapIdError
impl Debug for MapIdError
Source§impl Display for MapIdError
impl Display for MapIdError
Source§impl Error for MapIdError
impl Error for MapIdError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<FromHexError> for MapIdError
impl From<FromHexError> for MapIdError
Source§fn from(_: FromHexError) -> Self
fn from(_: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for MapIdError
impl From<ParseIntError> for MapIdError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MapIdError
impl PartialEq for MapIdError
Source§fn eq(&self, other: &MapIdError) -> bool
fn eq(&self, other: &MapIdError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MapIdError
Auto Trait Implementations§
impl Freeze for MapIdError
impl RefUnwindSafe for MapIdError
impl Send for MapIdError
impl Sync for MapIdError
impl Unpin for MapIdError
impl UnsafeUnpin for MapIdError
impl UnwindSafe for MapIdError
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