Struct nvim_oxi_api::types::KeymapInfos
source · #[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§
source§impl Clone for KeymapInfos
impl Clone for KeymapInfos
source§fn clone(&self) -> KeymapInfos
fn clone(&self) -> KeymapInfos
Returns a copy 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
source§fn eq(&self, other: &KeymapInfos) -> bool
fn eq(&self, other: &KeymapInfos) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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
source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.