Enum rustyline::EventHandler
source · [−]pub enum EventHandler {
Simple(Cmd),
Conditional(Box<dyn ConditionalEventHandler>),
}
Available on crate feature
custom-bindings
only.Expand description
Event handler
Variants
Simple(Cmd)
unconditional command
Conditional(Box<dyn ConditionalEventHandler>)
handler behaviour depends on input state
Trait Implementations
sourceimpl From<Cmd> for EventHandler
impl From<Cmd> for EventHandler
sourcefn from(c: Cmd) -> EventHandler
fn from(c: Cmd) -> EventHandler
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl !UnwindSafe for EventHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more