Struct cursive::event::Callback [−][src]
pub struct Callback(_);
Expand description
Callback is a function that can be triggered by an event. It has a mutable access to the cursive root.
It is meant to be stored in views.
Implementations
Wraps the given function into a Callback
object.
Wrap a FnMut
into a Callback
object.
If this methods tries to call itself, nested calls will be no-ops.
Wrap a FnOnce
into a Callback
object.
After being called once, the callback will become a no-op.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Callback
impl !UnwindSafe for Callback
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.