pub struct PrimaryLanguage {
pub language: Language,
pub confidence: Confidence,
}
Expand description
Primary language
Fields§
§language: Language
The language code
confidence: Confidence
The confidence of the language detection
Trait Implementations§
Source§impl Clone for PrimaryLanguage
impl Clone for PrimaryLanguage
Source§fn clone(&self) -> PrimaryLanguage
fn clone(&self) -> PrimaryLanguage
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 PrimaryLanguage
impl Debug for PrimaryLanguage
Source§impl PartialEq for PrimaryLanguage
impl PartialEq for PrimaryLanguage
impl Eq for PrimaryLanguage
impl StructuralPartialEq for PrimaryLanguage
Auto Trait Implementations§
impl Freeze for PrimaryLanguage
impl RefUnwindSafe for PrimaryLanguage
impl Send for PrimaryLanguage
impl Sync for PrimaryLanguage
impl Unpin for PrimaryLanguage
impl UnwindSafe for PrimaryLanguage
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