Struct nvim_oxi::opts::CreateCommandOptsBuilder
source · [−]pub struct CreateCommandOptsBuilder { /* private fields */ }Expand description
Builder for CreateCommandOpts.
Implementations
sourceimpl CreateCommandOptsBuilder
impl CreateCommandOptsBuilder
pub fn bang(&mut self, value: bool) -> &mut Self
pub fn bar(&mut self, value: bool) -> &mut Self
pub fn count<VALUE: Into<Integer>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn force(&mut self, value: bool) -> &mut Self
pub fn force(&mut self, value: bool) -> &mut Self
Whether to override any previous definitions. Defaults to true.
pub fn keepscript(&mut self, value: bool) -> &mut Self
pub fn register(&mut self, value: bool) -> &mut Self
sourceimpl CreateCommandOptsBuilder
impl CreateCommandOptsBuilder
pub fn addr(&mut self, addr: CommandAddr) -> &mut Self
pub fn complete(&mut self, complete: CommandComplete) -> &mut Self
pub fn nargs(&mut self, nargs: CommandNArgs) -> &mut Self
pub fn range(&mut self, range: CommandRange) -> &mut Self
pub fn preview<F>(&mut self, f: F) -> &mut Self where
F: FnMut((CommandArgs, Option<u32>, Option<Buffer>)) -> Result<u8> + 'static,
Available on crate feature
nightly only.pub fn build(&mut self) -> CreateCommandOpts
Trait Implementations
sourceimpl Clone for CreateCommandOptsBuilder
impl Clone for CreateCommandOptsBuilder
sourcefn clone(&self) -> CreateCommandOptsBuilder
fn clone(&self) -> CreateCommandOptsBuilder
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 RefUnwindSafe for CreateCommandOptsBuilder
impl !Send for CreateCommandOptsBuilder
impl !Sync for CreateCommandOptsBuilder
impl Unpin for CreateCommandOptsBuilder
impl UnwindSafe for CreateCommandOptsBuilder
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