pub struct DefaultAcceptHandler;Expand description
Default handler: reads RawCandidate::accept_action set at
candidate-build time. Covers every picker source whose
candidates carry their action directly — which is the
expected case after slice 7b.
Sources only need their own AcceptHandler impl when the
accept action depends on context the candidate doesn’t
carry — e.g. a source that pivots on the current major
mode, or one that wants to transform the action based on
modifier keys at accept time.
Trait Implementations§
Source§impl AcceptHandler for DefaultAcceptHandler
impl AcceptHandler for DefaultAcceptHandler
fn accept(&self, candidate: &RawCandidate) -> Result<AcceptAction, String>
Auto Trait Implementations§
impl Freeze for DefaultAcceptHandler
impl RefUnwindSafe for DefaultAcceptHandler
impl Send for DefaultAcceptHandler
impl Sync for DefaultAcceptHandler
impl Unpin for DefaultAcceptHandler
impl UnsafeUnpin for DefaultAcceptHandler
impl UnwindSafe for DefaultAcceptHandler
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