#[non_exhaustive]
pub struct KeymapInfos { pub buffer: bool, pub callback: Option<Function<(), ()>>, pub expr: bool, pub lhs: String, pub lnum: Option<u32>, pub mode: Mode, pub noremap: bool, pub nowait: bool, pub rhs: Option<String>, pub script: bool, pub sid: i32, pub silent: bool, }

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
buffer: bool

Whether the mapping is local to a specific buffer.

callback: Option<Function<(), ()>>

Optional callback triggered by the keymap.

expr: bool

Whether the keymap argument is an expression.

lhs: String

The left-hand side of the mapping.

lnum: Option<u32>

The number where a script-local mapping is defined, if known.

mode: Mode

The modes for which the keymap is enabled.

noremap: bool

Whether the right-hand side of the mapping is not remappable.

nowait: bool

For buffer-local mappings, whether Neovim should wait for more characters to be typed if there’s a global mapping that could also match. See :h map-nowait for more details.

rhs: Option<String>

The right-hand side of the mapping.

script: bool

Whether the mapping was defined with <script>.

sid: i32

The script-local ID, used for <sid> mappings.

silent: bool

Whether the keymap is silent.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.