Struct cursive::event::Callback
[−]
[src]
pub struct Callback(_);
Callback is a function that can be triggered by an event. It has a mutable access to the cursive root.
Methods
impl Callback
[src]
pub fn from_fn<F, R>(f: F) -> Self where
F: 'static + Fn(&mut Cursive) -> R,
[src]
F: 'static + Fn(&mut Cursive) -> R,
Wraps the given function into a Callback
object.
Methods from Deref<Target = Box<Fn(&mut Cursive)>>
Trait Implementations
impl Clone for Callback
[src]
fn clone(&self) -> Callback
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Callback
[src]
type Target = Box<Fn(&mut Cursive)>
The resulting type after dereferencing.
ⓘImportant traits for Box<W>fn deref<'a>(&'a self) -> &'a Box<Fn(&mut Cursive)>
[src]
ⓘImportant traits for Box<W>
Dereferences the value.