pub struct LastForegroundBackend;Expand description
Predict the most recent non-current foreground app (user switching back).
Trait Implementations§
Source§impl NextAppPredictor for LastForegroundBackend
impl NextAppPredictor for LastForegroundBackend
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 LastForegroundBackend
impl RefUnwindSafe for LastForegroundBackend
impl Send for LastForegroundBackend
impl Sync for LastForegroundBackend
impl Unpin for LastForegroundBackend
impl UnsafeUnpin for LastForegroundBackend
impl UnwindSafe for LastForegroundBackend
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