Struct nvim_oxi_api::types::CmdInfosBuilder
source · pub struct CmdInfosBuilder(/* private fields */);Implementations§
source§impl CmdInfosBuilder
impl CmdInfosBuilder
sourcepub fn bang(&mut self, bang: bool) -> &mut Self
pub fn bang(&mut self, bang: bool) -> &mut Self
Whether the command contains a <bang> (!) modifier.
sourcepub fn count(&mut self, count: u32) -> &mut Self
pub fn count(&mut self, count: u32) -> &mut Self
Any count that was supplied to the command. None if command cannot
take a count.
pub fn magic(&mut self, magic: CmdMagic) -> &mut Self
pub fn mods(&mut self, mods: CommandModifiers) -> &mut Self
sourcepub fn nargs(&mut self, nargs: CommandNArgs) -> &mut Self
pub fn nargs(&mut self, nargs: CommandNArgs) -> &mut Self
Value of :command-nargs
sourcepub fn nextcmd(&mut self, nextcmd: impl Into<String>) -> &mut Self
pub fn nextcmd(&mut self, nextcmd: impl Into<String>) -> &mut Self
Next command if there are multiple commands separated by a :bar.
None if there isn’t a next command.
sourcepub fn reg(&mut self, reg: char) -> &mut Self
pub fn reg(&mut self, reg: char) -> &mut Self
The optional command <register>. None if not specified or if
command cannot take a register.
pub fn build(&mut self) -> CmdInfos
Trait Implementations§
source§impl Clone for CmdInfosBuilder
impl Clone for CmdInfosBuilder
source§fn clone(&self) -> CmdInfosBuilder
fn clone(&self) -> CmdInfosBuilder
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 CmdInfosBuilder
impl Default for CmdInfosBuilder
source§fn default() -> CmdInfosBuilder
fn default() -> CmdInfosBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CmdInfosBuilder
impl RefUnwindSafe for CmdInfosBuilder
impl Send for CmdInfosBuilder
impl Sync for CmdInfosBuilder
impl Unpin for CmdInfosBuilder
impl UnwindSafe for CmdInfosBuilder
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
§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.