pub struct LanguageDetection {
pub language: &'static str,
pub reason: LanguageDetectionReason,
}Expand description
Typed language detection result.
Fields§
§language: &'static strCanonical registry identifier.
reason: LanguageDetectionReasonRule class that selected the identifier.
Trait Implementations§
Source§impl Clone for LanguageDetection
impl Clone for LanguageDetection
Source§fn clone(&self) -> LanguageDetection
fn clone(&self) -> LanguageDetection
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 LanguageDetection
impl Debug for LanguageDetection
Source§impl PartialEq for LanguageDetection
impl PartialEq for LanguageDetection
Source§impl Serialize for LanguageDetection
impl Serialize for LanguageDetection
impl Copy for LanguageDetection
impl Eq for LanguageDetection
impl StructuralPartialEq for LanguageDetection
Auto Trait Implementations§
impl Freeze for LanguageDetection
impl RefUnwindSafe for LanguageDetection
impl Send for LanguageDetection
impl Sync for LanguageDetection
impl Unpin for LanguageDetection
impl UnwindSafe for LanguageDetection
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.