pub enum LanguageIdentifierError {
Unknown,
ParserError(ParserError),
}
Expand description
Enum with errors that can be returned by LanguageIdentifier.
Variants§
Unknown
An unknown error - currently covers all-but parser errors.
ParserError(ParserError)
A parser error.
Trait Implementations§
source§impl Debug for LanguageIdentifierError
impl Debug for LanguageIdentifierError
source§impl Display for LanguageIdentifierError
impl Display for LanguageIdentifierError
source§impl Error for LanguageIdentifierError
impl Error for LanguageIdentifierError
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 LanguageIdentifierError
impl PartialEq for LanguageIdentifierError
source§fn eq(&self, other: &LanguageIdentifierError) -> bool
fn eq(&self, other: &LanguageIdentifierError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LanguageIdentifierError
Auto Trait Implementations§
impl Freeze for LanguageIdentifierError
impl RefUnwindSafe for LanguageIdentifierError
impl Send for LanguageIdentifierError
impl Sync for LanguageIdentifierError
impl Unpin for LanguageIdentifierError
impl UnwindSafe for LanguageIdentifierError
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