pub struct MissingLanguage;Expand description
The error for a rule switched on without a language, from
Language::for_rule.
Its message is generic (a language is required): a frontend reports it
in its own words, naming its own parameters (the CLI says --strip-article requires --lang).
Trait Implementations§
Source§impl Clone for MissingLanguage
impl Clone for MissingLanguage
impl Copy for MissingLanguage
Source§impl Debug for MissingLanguage
impl Debug for MissingLanguage
Source§impl Display for MissingLanguage
impl Display for MissingLanguage
impl Eq for MissingLanguage
Source§impl Error for MissingLanguage
impl Error for MissingLanguage
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 MissingLanguage
impl Hash for MissingLanguage
Source§impl PartialEq for MissingLanguage
impl PartialEq for MissingLanguage
impl StructuralPartialEq for MissingLanguage
Auto Trait Implementations§
impl Freeze for MissingLanguage
impl RefUnwindSafe for MissingLanguage
impl Send for MissingLanguage
impl Sync for MissingLanguage
impl Unpin for MissingLanguage
impl UnsafeUnpin for MissingLanguage
impl UnwindSafe for MissingLanguage
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