Enum xid::ParseIdError
source · pub enum ParseIdError {
InvalidLength(usize),
InvalidCharacter(char),
}
Expand description
An error which can be returned when parsing an id.
Variants§
InvalidLength(usize)
Returned when the id had length other than 20.
InvalidCharacter(char)
Returned when the id had character not in [0-9a-v]
.
Trait Implementations§
source§impl Debug for ParseIdError
impl Debug for ParseIdError
source§impl Display for ParseIdError
impl Display for ParseIdError
source§impl Error for ParseIdError
impl Error for ParseIdError
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 for ParseIdError
impl PartialEq for ParseIdError
source§fn eq(&self, other: &ParseIdError) -> bool
fn eq(&self, other: &ParseIdError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseIdError
impl StructuralPartialEq for ParseIdError
Auto Trait Implementations§
impl Freeze for ParseIdError
impl RefUnwindSafe for ParseIdError
impl Send for ParseIdError
impl Sync for ParseIdError
impl Unpin for ParseIdError
impl UnwindSafe for ParseIdError
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