pub enum Category {
Any,
Capable,
Efficient,
Judge,
Named(Arc<str>),
}Expand description
A group of models
Variants§
Any
When the category doesn’t matter: Random, Passthrough, etc.
Capable
High accuracy and cost models.
Efficient
Lower accuracy and cost models.
Judge
Models the algorithm can use to decide.
Named(Arc<str>)
A deployment-defined group. Only a custom classifier’s policy selects one, and no algorithm ascribes meaning to the name.
Implementations§
Trait Implementations§
Source§impl FromStr for Category
impl FromStr for Category
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
The four reserved names are matched first. Were "capable" allowed to
become a Category::Named there would be two keys that compare unequal
but print the same, and a lookup of Category::Capable would silently
miss the configured group.
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnsafeUnpin for Category
impl UnwindSafe for Category
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.