Trait linfa::dataset::Label

source ·
pub trait Label: PartialEq + Eq + Hash + Clone + Ord + Debug + Default { }
Expand description

Discrete labels

Labels are countable, comparable and hashable. Currently null-type (no targets), boolean (binary task) and usize, strings (multi-label tasks) are supported.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Label for &str

source§

impl Label for bool

source§

impl Label for ()

source§

impl Label for usize

source§

impl Label for String

source§

impl<L: Label> Label for Option<L>

Implementors§