pub struct FirstCandidateBackend;Expand description
Always pick the first observable candidate.
Trait Implementations§
Source§impl NextAppPredictor for FirstCandidateBackend
impl NextAppPredictor for FirstCandidateBackend
fn name(&self) -> &'static str
fn predict( &self, _ctx: &StructuredContext, _current_app: &str, candidates: &[String], ) -> PredictionResult
fn train(&mut self, _train: &[NextAppLabel])
Auto Trait Implementations§
impl Freeze for FirstCandidateBackend
impl RefUnwindSafe for FirstCandidateBackend
impl Send for FirstCandidateBackend
impl Sync for FirstCandidateBackend
impl Unpin for FirstCandidateBackend
impl UnsafeUnpin for FirstCandidateBackend
impl UnwindSafe for FirstCandidateBackend
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