pub enum LanguageDetectionReason {
ExplicitOverride,
ExactFilename,
CompoundExtension,
Extension,
ContentDialect,
}Expand description
Detection rule class and precedence reason.
Variants§
ExplicitOverride
A validated explicit override selected the language.
ExactFilename
A case-sensitive exact filename selected the language.
CompoundExtension
The longest declared compound extension selected the language.
Extension
A case-insensitive ordinary extension selected the language.
ContentDialect
A bounded declared content/dialect rule selected the language.
Trait Implementations§
Source§impl Clone for LanguageDetectionReason
impl Clone for LanguageDetectionReason
Source§fn clone(&self) -> LanguageDetectionReason
fn clone(&self) -> LanguageDetectionReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageDetectionReason
impl Debug for LanguageDetectionReason
Source§impl PartialEq for LanguageDetectionReason
impl PartialEq for LanguageDetectionReason
Source§impl Serialize for LanguageDetectionReason
impl Serialize for LanguageDetectionReason
impl Copy for LanguageDetectionReason
impl Eq for LanguageDetectionReason
impl StructuralPartialEq for LanguageDetectionReason
Auto Trait Implementations§
impl Freeze for LanguageDetectionReason
impl RefUnwindSafe for LanguageDetectionReason
impl Send for LanguageDetectionReason
impl Sync for LanguageDetectionReason
impl Unpin for LanguageDetectionReason
impl UnwindSafe for LanguageDetectionReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.