struct Subscription {
    cb: Box<dyn Fn(Vec<String>) + 'static>,
    args: Vec<String>,
}
Expand description

A subscription to a Neovim autocmd event.

Fields

cb: Box<dyn Fn(Vec<String>) + 'static>

A callback to be executed each time the event triggers.

args: Vec<String>

A list of expressions which will be evaluated when the event triggers. The result is passed to the callback.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.