#[non_exhaustive]pub struct LangIdCandidate {
pub index: i32,
pub code: String,
pub name: String,
pub p: f32,
pub logit: f32,
}Expand description
One ranked label. code is the model’s own label ("en", "iw").
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.index: i32Label index.
code: String§name: String§p: f32Softmax renormalized over the allowed set.
logit: f32Trait Implementations§
Source§impl Clone for LangIdCandidate
impl Clone for LangIdCandidate
Source§impl Debug for LangIdCandidate
impl Debug for LangIdCandidate
Source§impl Default for LangIdCandidate
impl Default for LangIdCandidate
Source§impl PartialEq for LangIdCandidate
impl PartialEq for LangIdCandidate
impl StructuralPartialEq for LangIdCandidate
Auto Trait Implementations§
impl Freeze for LangIdCandidate
impl RefUnwindSafe for LangIdCandidate
impl Send for LangIdCandidate
impl Sync for LangIdCandidate
impl Unpin for LangIdCandidate
impl UnsafeUnpin for LangIdCandidate
impl UnwindSafe for LangIdCandidate
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