pub struct LanguageDetectionRule {
pub value: &'static str,
pub language: &'static str,
}Expand description
One static exact, compound, or extension detector rule.
Fields§
§value: &'static strMatch value.
language: &'static strCanonical owner language.
Trait Implementations§
Source§impl Clone for LanguageDetectionRule
impl Clone for LanguageDetectionRule
Source§fn clone(&self) -> LanguageDetectionRule
fn clone(&self) -> LanguageDetectionRule
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 LanguageDetectionRule
Source§impl Debug for LanguageDetectionRule
impl Debug for LanguageDetectionRule
impl Eq for LanguageDetectionRule
Source§impl PartialEq for LanguageDetectionRule
impl PartialEq for LanguageDetectionRule
Source§fn eq(&self, other: &LanguageDetectionRule) -> bool
fn eq(&self, other: &LanguageDetectionRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LanguageDetectionRule
impl Serialize for LanguageDetectionRule
impl StructuralPartialEq for LanguageDetectionRule
Auto Trait Implementations§
impl Freeze for LanguageDetectionRule
impl RefUnwindSafe for LanguageDetectionRule
impl Send for LanguageDetectionRule
impl Sync for LanguageDetectionRule
impl Unpin for LanguageDetectionRule
impl UnsafeUnpin for LanguageDetectionRule
impl UnwindSafe for LanguageDetectionRule
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.