Struct nvim::api::NvimSetKeymapOptsBuilder
source · [−]pub struct NvimSetKeymapOptsBuilder<'lua> { /* private fields */ }Expand description
Builder for NvimSetKeymapOpts.
Implementations
sourceimpl<'lua> NvimSetKeymapOptsBuilder<'lua>
impl<'lua> NvimSetKeymapOptsBuilder<'lua>
pub fn nowait(&mut self, value: bool) -> &mut Self
pub fn silent(&mut self, value: bool) -> &mut Self
pub fn script(&mut self, value: bool) -> &mut Self
pub fn expr(&mut self, value: bool) -> &mut Self
pub fn unique(&mut self, value: bool) -> &mut Self
pub fn noremap(&mut self, value: bool) -> &mut Self
pub fn desc(&mut self, value: String) -> &mut Self
pub fn callback(&mut self, value: LuaFunction<'lua>) -> &mut Self
sourceimpl<'lua> NvimSetKeymapOptsBuilder<'lua>
impl<'lua> NvimSetKeymapOptsBuilder<'lua>
pub fn build(&self) -> NvimSetKeymapOpts<'lua>
Trait Implementations
sourceimpl<'lua> Clone for NvimSetKeymapOptsBuilder<'lua>
impl<'lua> Clone for NvimSetKeymapOptsBuilder<'lua>
sourcefn clone(&self) -> NvimSetKeymapOptsBuilder<'lua>
fn clone(&self) -> NvimSetKeymapOptsBuilder<'lua>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'lua> !RefUnwindSafe for NvimSetKeymapOptsBuilder<'lua>
impl<'lua> !Send for NvimSetKeymapOptsBuilder<'lua>
impl<'lua> !Sync for NvimSetKeymapOptsBuilder<'lua>
impl<'lua> Unpin for NvimSetKeymapOptsBuilder<'lua>
impl<'lua> !UnwindSafe for NvimSetKeymapOptsBuilder<'lua>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more