pub struct CmdInfosBuilder { /* private fields */ }
Expand description
Builder for CmdInfos
.
Implementations§
Source§impl CmdInfosBuilder
impl CmdInfosBuilder
Sourcepub fn addr(&mut self, value: CommandAddr) -> &mut Self
pub fn addr(&mut self, value: CommandAddr) -> &mut Self
Value of :command-addr
. Uses short name.
Sourcepub fn bang(&mut self, value: bool) -> &mut Self
pub fn bang(&mut self, value: bool) -> &mut Self
Whether the command contains a <bang>
(!
) modifier.
Sourcepub fn count(&mut self, value: u32) -> &mut Self
pub fn count(&mut self, value: u32) -> &mut Self
Any count that was supplied to the command. None
if command cannot
take a count.
pub fn magic(&mut self, value: CmdMagic) -> &mut Self
pub fn mods(&mut self, value: CommandModifiers) -> &mut Self
Trait Implementations§
Source§impl Clone for CmdInfosBuilder
impl Clone for CmdInfosBuilder
Source§fn clone(&self) -> CmdInfosBuilder
fn clone(&self) -> CmdInfosBuilder
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 moreAuto 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