pub enum LocaleSource {
ExplicitArgument,
EnvironmentVariable,
Configuration,
Fallback,
}Expand description
Source for a resolved locale.
Variants§
ExplicitArgument
Locale supplied explicitly by the caller.
EnvironmentVariable
Locale sourced from the DYLINT_LOCALE environment variable.
Configuration
Locale taken from dylint.toml configuration.
Fallback
Fallback locale bundled with the Whitaker suite.
Trait Implementations§
Source§impl Clone for LocaleSource
impl Clone for LocaleSource
Source§fn clone(&self) -> LocaleSource
fn clone(&self) -> LocaleSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocaleSource
Source§impl Debug for LocaleSource
impl Debug for LocaleSource
Source§impl Display for LocaleSource
impl Display for LocaleSource
impl Eq for LocaleSource
Source§impl PartialEq for LocaleSource
impl PartialEq for LocaleSource
impl StructuralPartialEq for LocaleSource
Auto Trait Implementations§
impl Freeze for LocaleSource
impl RefUnwindSafe for LocaleSource
impl Send for LocaleSource
impl Sync for LocaleSource
impl Unpin for LocaleSource
impl UnsafeUnpin for LocaleSource
impl UnwindSafe for LocaleSource
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