pub struct UnknownLanguage(/* private fields */);Expand description
The error for a code that no supported language uses.
It holds the trimmed input, in its original case. Its message lists the
canonical codes from Language::ALL:
unknown language "xx" (expected one of: af, br, ca, …).
Trait Implementations§
Source§impl Clone for UnknownLanguage
impl Clone for UnknownLanguage
Source§impl Debug for UnknownLanguage
impl Debug for UnknownLanguage
Source§impl Display for UnknownLanguage
impl Display for UnknownLanguage
impl Eq for UnknownLanguage
Source§impl Error for UnknownLanguage
impl Error for UnknownLanguage
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 Hash for UnknownLanguage
impl Hash for UnknownLanguage
Source§impl PartialEq for UnknownLanguage
impl PartialEq for UnknownLanguage
impl StructuralPartialEq for UnknownLanguage
Auto Trait Implementations§
impl Freeze for UnknownLanguage
impl RefUnwindSafe for UnknownLanguage
impl Send for UnknownLanguage
impl Sync for UnknownLanguage
impl Unpin for UnknownLanguage
impl UnsafeUnpin for UnknownLanguage
impl UnwindSafe for UnknownLanguage
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