#[non_exhaustive]pub struct LangIdResult {
pub candidates: Vec<LangIdCandidate>,
pub allowed_mass: f32,
}Expand description
The result of one transcribe_cpp::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§fn clone(&self) -> LangIdResult
fn clone(&self) -> LangIdResult
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 moreSource§impl Debug for LangIdResult
impl Debug for LangIdResult
Source§impl Default for LangIdResult
impl Default for LangIdResult
Source§fn default() -> LangIdResult
fn default() -> LangIdResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for LangIdResult
impl PartialEq for LangIdResult
impl StructuralPartialEq for LangIdResult
Auto Trait Implementations§
impl Forget for LangIdResult
impl Freeze for LangIdResult
impl Move for LangIdResult
impl RefUnwindSafe for LangIdResult
impl Send for LangIdResultwhere
RawVecInner: Send,
impl Sync for LangIdResultwhere
RawVecInner: Sync,
impl Unpin for LangIdResult
impl UnsafeUnpin for LangIdResult
impl UnwindSafe for LangIdResultwhere
RawVecInner: UnwindSafe,
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