#[non_exhaustive]pub struct LabelStat {
pub label: String,
pub correct: usize,
pub total: usize,
}Expand description
Per-label tally (named fields — a 3-tuple would be an opaque API surface).
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.label: StringThe expected label this row tallies.
correct: usizeHow many cases with this expected label the classifier got right.
total: usizeHow many cases carried this expected label.
Trait Implementations§
impl StructuralPartialEq for LabelStat
Auto Trait Implementations§
impl Freeze for LabelStat
impl RefUnwindSafe for LabelStat
impl Send for LabelStat
impl Sync for LabelStat
impl Unpin for LabelStat
impl UnsafeUnpin for LabelStat
impl UnwindSafe for LabelStat
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