pub struct Detection {
pub locale: Locale,
pub confidence: f64,
pub matches: usize,
pub candidates: Vec<(Locale, usize)>,
}Expand description
A language-detection result with ranked evidence.
Fields§
§locale: LocaleThe best-matching locale.
confidence: f64Confidence in [0, 1); grows with the number of distinct matches.
matches: usizeDistinct catalog aliases found for the best locale.
candidates: Vec<(Locale, usize)>Every candidate locale with its match count, ranked descending.
Trait Implementations§
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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