#[non_exhaustive]pub struct LangIdResult {
pub candidates: Vec<LangIdCandidate>,
pub allowed_mass: f32,
}Expand description
The result of one LangIdSession::run.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.candidates: Vec<LangIdCandidate>Every allowed label (duplicates once; all labels when unrestricted),
ranked by p, descending; ties keep label order.
allowed_mass: f32Unrestricted probability inside the allowed set (1.0 when unrestricted); a low value means the speech is probably outside it.
Implementations§
Trait Implementations§
Source§impl Clone for LangIdResult
impl Clone for LangIdResult
Source§impl Debug for LangIdResult
impl Debug for LangIdResult
Source§impl Default for LangIdResult
impl Default for LangIdResult
Source§impl PartialEq for LangIdResult
impl PartialEq for LangIdResult
impl StructuralPartialEq for LangIdResult
Auto Trait Implementations§
impl Freeze for LangIdResult
impl RefUnwindSafe for LangIdResult
impl Send for LangIdResult
impl Sync for LangIdResult
impl Unpin for LangIdResult
impl UnsafeUnpin for LangIdResult
impl UnwindSafe for LangIdResult
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