pub struct SetKeymapOptsBuilder(/* private fields */);Implementations§
Source§impl SetKeymapOptsBuilder
impl SetKeymapOptsBuilder
Sourcepub fn callback<F>(&mut self, fun: F) -> &mut Self
pub fn callback<F>(&mut self, fun: F) -> &mut Self
A function to call when the mapping is executed.
Sourcepub fn noremap(&mut self, noremap: bool) -> &mut Self
pub fn noremap(&mut self, noremap: bool) -> &mut Self
Whether the right-hand side of the mapping shouldn’t be remappable.
Sourcepub fn nowait(&mut self, nowait: bool) -> &mut Self
pub fn nowait(&mut self, nowait: bool) -> &mut Self
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.
Sourcepub fn replace_keycodes(&mut self, replace_keycodes: bool) -> &mut Self
pub fn replace_keycodes(&mut self, replace_keycodes: bool) -> &mut Self
When expr is true, this option can be
used to replace the keycodes in the resulting string (see
replace_termcodes()).
Sourcepub fn script(&mut self, script: bool) -> &mut Self
pub fn script(&mut self, script: bool) -> &mut Self
Whether to remap characters in the right-hand side by expanding the
<sid> script tag.
Sourcepub fn unique(&mut self, unique: bool) -> &mut Self
pub fn unique(&mut self, unique: bool) -> &mut Self
If true setting the keymap fill fail if another keymap with the same
left-hand side already exists.
pub fn build(&mut self) -> SetKeymapOpts
Trait Implementations§
Source§impl Clone for SetKeymapOptsBuilder
impl Clone for SetKeymapOptsBuilder
Source§fn clone(&self) -> SetKeymapOptsBuilder
fn clone(&self) -> SetKeymapOptsBuilder
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 Default for SetKeymapOptsBuilder
impl Default for SetKeymapOptsBuilder
Source§fn default() -> SetKeymapOptsBuilder
fn default() -> SetKeymapOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetKeymapOptsBuilder
impl RefUnwindSafe for SetKeymapOptsBuilder
impl !Send for SetKeymapOptsBuilder
impl !Sync for SetKeymapOptsBuilder
impl Unpin for SetKeymapOptsBuilder
impl UnwindSafe for SetKeymapOptsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§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.