pub struct SetKeymapOptsBuilder(/* private fields */);Implementations§
Source§impl SetKeymapOptsBuilder
impl SetKeymapOptsBuilder
Sourcepub fn callback<F>(&mut self, callback: F) -> &mut SetKeymapOptsBuilder
pub fn callback<F>(&mut self, callback: F) -> &mut SetKeymapOptsBuilder
A function to call when the mapping is executed.
Sourcepub fn desc<D>(&mut self, desc: D) -> &mut SetKeymapOptsBuilder
pub fn desc<D>(&mut self, desc: D) -> &mut SetKeymapOptsBuilder
A description for the keymap.
Sourcepub fn expr(&mut self, expr: bool) -> &mut SetKeymapOptsBuilder
pub fn expr(&mut self, expr: bool) -> &mut SetKeymapOptsBuilder
Whether the keymap argument is an expression.
Sourcepub fn noremap(&mut self, noremap: bool) -> &mut SetKeymapOptsBuilder
pub fn noremap(&mut self, noremap: bool) -> &mut SetKeymapOptsBuilder
Whether the right-hand side of the mapping shouldn’t be remappable.
Sourcepub fn nowait(&mut self, nowait: bool) -> &mut SetKeymapOptsBuilder
pub fn nowait(&mut self, nowait: bool) -> &mut SetKeymapOptsBuilder
For buffer-local mappings, whether Neovim should wait for more
Sourcepub fn replace_keycodes(
&mut self,
replace_keycodes: bool,
) -> &mut SetKeymapOptsBuilder
pub fn replace_keycodes( &mut self, replace_keycodes: bool, ) -> &mut SetKeymapOptsBuilder
When expr is true, this option can be
Sourcepub fn script(&mut self, script: bool) -> &mut SetKeymapOptsBuilder
pub fn script(&mut self, script: bool) -> &mut SetKeymapOptsBuilder
Whether to remap characters in the right-hand side by expanding the
Sourcepub fn silent(&mut self, silent: bool) -> &mut SetKeymapOptsBuilder
pub fn silent(&mut self, silent: bool) -> &mut SetKeymapOptsBuilder
Whether the keymap should be silent.
Sourcepub fn unique(&mut self, unique: bool) -> &mut SetKeymapOptsBuilder
pub fn unique(&mut self, unique: bool) -> &mut SetKeymapOptsBuilder
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
Source§fn clone(&self) -> SetKeymapOptsBuilder
fn clone(&self) -> SetKeymapOptsBuilder
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 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.