pub struct LanguageScore {
pub language: Option<Lang>,
pub percent: u8,
pub normalized_score: f64,
}
Expand description
Detailed information about how well the input text matched a specific language.
Fields§
§language: Option<Lang>
The language matched.
percent: u8
The percentage of the text which appears to be in this language. Between 0 and 100.
normalized_score: f64
Scores near 1.0 indicate a “normal” text for this language. Scores further away from 1.0 indicate strange or atypical texts.
Trait Implementations§
Source§impl Clone for LanguageScore
impl Clone for LanguageScore
Source§fn clone(&self) -> LanguageScore
fn clone(&self) -> LanguageScore
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 moreimpl Copy for LanguageScore
Auto Trait Implementations§
impl Freeze for LanguageScore
impl RefUnwindSafe for LanguageScore
impl Send for LanguageScore
impl Sync for LanguageScore
impl Unpin for LanguageScore
impl UnwindSafe for LanguageScore
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