pub struct SetKeymapOptsBuilder(/* private fields */);
Implementations§
Source§impl SetKeymapOptsBuilder
impl SetKeymapOptsBuilder
Sourcepub fn callback<F: ToFunction<(), ()>>(&mut self, callback: F) -> &mut Self
pub fn callback<F: ToFunction<(), ()>>(&mut self, callback: 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
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
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
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
pub fn build(&mut self) -> SetKeymapOpts
Trait Implementations§
Source§impl Clone for SetKeymapOptsBuilder
impl Clone for SetKeymapOptsBuilder
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
.