#[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§
Source§impl Clone for KeymapInfos
impl Clone for KeymapInfos
Source§fn clone(&self) -> KeymapInfos
fn clone(&self) -> KeymapInfos
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeymapInfos
impl Debug for KeymapInfos
Source§impl<'de> Deserialize<'de> for KeymapInfos
impl<'de> Deserialize<'de> for KeymapInfos
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromObject for KeymapInfos
impl FromObject for KeymapInfos
Source§impl Hash for KeymapInfos
impl Hash for KeymapInfos
Source§impl PartialEq for KeymapInfos
impl PartialEq for KeymapInfos
impl Eq for KeymapInfos
impl StructuralPartialEq for KeymapInfos
Auto Trait Implementations§
impl Freeze for KeymapInfos
impl RefUnwindSafe for KeymapInfos
impl Send for KeymapInfos
impl Sync for KeymapInfos
impl Unpin for KeymapInfos
impl UnwindSafe for KeymapInfos
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more