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]

[src]

Wraps the given function into a Callback object.

Methods from Deref<Target = Box<Fn(&mut Cursive)>>

Trait Implementations

impl Clone for Callback
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for Callback
[src]

The resulting type after dereferencing.

Important traits for Box<W>
[src]

Dereferences the value.

impl From<Rc<Box<Fn(&mut Cursive)>>> for Callback
[src]

[src]

Performs the conversion.

impl From<Box<Fn(&mut Cursive) + Send>> for Callback
[src]

[src]

Performs the conversion.

impl From<Box<Fn(&mut Cursive)>> for Callback
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Callback

impl !Sync for Callback