#[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: boolWhether the mapping is local to a specific buffer.
callback: Option<Function<(), ()>>Optional callback triggered by the keymap.
expr: boolWhether the keymap argument is an expression.
lhs: StringThe left-hand side of the mapping.
lnum: Option<u32>The number where a script-local mapping is defined, if known.
mode: ModeThe modes for which the keymap is enabled.
noremap: boolWhether the right-hand side of the mapping is not remappable.
nowait: boolFor 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: boolWhether the mapping was defined with <script>.
sid: i32The script-local ID, used for <sid> mappings.
silent: boolWhether the keymap is silent.
Trait Implementations
sourceimpl Clone for KeymapInfos
impl Clone for KeymapInfos
sourcefn clone(&self) -> KeymapInfos
fn clone(&self) -> KeymapInfos
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for KeymapInfos
impl Debug for KeymapInfos
sourceimpl<'de> Deserialize<'de> for KeymapInfos
impl<'de> Deserialize<'de> for KeymapInfos
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<KeymapInfos, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeymapInfos, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromObject for KeymapInfos
impl FromObject for KeymapInfos
fn from_object(obj: Object) -> Result<KeymapInfos, Error>
sourceimpl Hash for KeymapInfos
impl Hash for KeymapInfos
sourceimpl PartialEq<KeymapInfos> for KeymapInfos
impl PartialEq<KeymapInfos> for KeymapInfos
sourcefn eq(&self, other: &KeymapInfos) -> bool
fn eq(&self, other: &KeymapInfos) -> bool
impl Eq for KeymapInfos
impl StructuralEq for KeymapInfos
impl StructuralPartialEq for KeymapInfos
Auto Trait Implementations
impl RefUnwindSafe for KeymapInfos
impl Send for KeymapInfos
impl Sync for KeymapInfos
impl Unpin for KeymapInfos
impl UnwindSafe for KeymapInfos
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more