pub struct TaskClassMatcher { /* private fields */ }Expand description
Classifies a list of signal strings to the best-matching TaskClass.
Implementations§
Source§impl TaskClassMatcher
impl TaskClassMatcher
Sourcepub fn new(classes: Vec<TaskClass>) -> Self
pub fn new(classes: Vec<TaskClass>) -> Self
Create a matcher with the provided task-class registry.
Sourcepub fn with_builtins() -> Self
pub fn with_builtins() -> Self
Create a matcher pre-loaded with builtin_task_classes().
Auto Trait Implementations§
impl Freeze for TaskClassMatcher
impl RefUnwindSafe for TaskClassMatcher
impl Send for TaskClassMatcher
impl Sync for TaskClassMatcher
impl Unpin for TaskClassMatcher
impl UnsafeUnpin for TaskClassMatcher
impl UnwindSafe for TaskClassMatcher
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