pub enum IdError {
MissingPrefix,
Manager(String),
Field(String),
Disambiguator(String),
EmptyPath,
Syntax {
at: usize,
why: &'static str,
},
}Expand description
Why an id or one of its parts could not be built or parsed.
Variants§
MissingPrefix
The text does not start with sym:.
Manager(String)
A manager name outside [a-z][a-z0-9-]*, or the reserved extern.
Field(String)
An empty package name or version, . as a package name, a leading or
trailing space, or a control character.
Disambiguator(String)
A method disambiguator with characters outside the simple set.
EmptyPath
A path id needs at least one segment.
Syntax
The text does not follow the grammar at byte offset at.
Trait Implementations§
impl Eq for IdError
Source§impl Error for IdError
impl Error for IdError
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()
impl StructuralPartialEq for IdError
Auto Trait Implementations§
impl Freeze for IdError
impl RefUnwindSafe for IdError
impl Send for IdError
impl Sync for IdError
impl Unpin for IdError
impl UnsafeUnpin for IdError
impl UnwindSafe for IdError
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