pub enum LookupError {
UnknownCode,
AmbiguousCode {
first: DiagnosticCode,
second: DiagnosticCode,
},
InvalidRegistry(RegistryError),
}Expand description
Failure to resolve a diagnostic code.
Variants§
UnknownCode
No descriptor has the requested canonical or unqualified code.
AmbiguousCode
An unqualified code matches more than one canonical code.
InvalidRegistry(RegistryError)
The selected explicit registry contains duplicate canonical codes.
Trait Implementations§
Source§impl Clone for LookupError
impl Clone for LookupError
impl Copy for LookupError
Source§impl Debug for LookupError
impl Debug for LookupError
Source§impl Display for LookupError
impl Display for LookupError
impl Eq for LookupError
Source§impl Error for LookupError
impl Error for LookupError
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<RegistryError> for LookupError
impl From<RegistryError> for LookupError
Source§fn from(error: RegistryError) -> Self
fn from(error: RegistryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LookupError
impl PartialEq for LookupError
impl StructuralPartialEq for LookupError
Auto Trait Implementations§
impl Forget for LookupError
impl Freeze for LookupError
impl Move for LookupError
impl RefUnwindSafe for LookupError
impl Send for LookupError
impl Sync for LookupError
impl Unpin for LookupError
impl UnsafeUnpin for LookupError
impl UnwindSafe for LookupError
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