pub enum ParseEntityRefError {
Malformed(String),
UnknownType(String),
BadId(String),
}Expand description
Error parsing an EntityRef from its URN string form.
Variants§
Malformed(String)
Not exactly one : separating a non-empty type and id.
UnknownType(String)
The type token is not a known EntityType.
BadId(String)
The id is not a valid UUID.
Trait Implementations§
Source§impl Clone for ParseEntityRefError
impl Clone for ParseEntityRefError
Source§impl Debug for ParseEntityRefError
impl Debug for ParseEntityRefError
Source§impl Display for ParseEntityRefError
impl Display for ParseEntityRefError
impl Eq for ParseEntityRefError
Source§impl Error for ParseEntityRefError
impl Error for ParseEntityRefError
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 PartialEq for ParseEntityRefError
impl PartialEq for ParseEntityRefError
impl StructuralPartialEq for ParseEntityRefError
Auto Trait Implementations§
impl Freeze for ParseEntityRefError
impl RefUnwindSafe for ParseEntityRefError
impl Send for ParseEntityRefError
impl Sync for ParseEntityRefError
impl Unpin for ParseEntityRefError
impl UnsafeUnpin for ParseEntityRefError
impl UnwindSafe for ParseEntityRefError
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