pub struct AddCommand;Expand description
Typed wrapper for upstream AddCommand.
Implementations§
Source§impl AddCommand
impl AddCommand
pub const fn new() -> Self
pub fn spec(&self) -> &'static CommandSpec
pub const fn action_kind(&self) -> ActionKind
Trait Implementations§
Source§impl AbstractCommand for AddCommand
impl AbstractCommand for AddCommand
fn command_name(&self) -> CommandName
fn spec(&self) -> &'static CommandSpec
fn load<I, S>(&self, args: I) -> Result<ActionInvocation, CommandParseError>
Source§impl Clone for AddCommand
impl Clone for AddCommand
Source§fn clone(&self) -> AddCommand
fn clone(&self) -> AddCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddCommand
impl Debug for AddCommand
Source§impl Default for AddCommand
impl Default for AddCommand
Source§fn default() -> AddCommand
fn default() -> AddCommand
Returns the “default value” for a type. Read more
Source§impl PartialEq for AddCommand
impl PartialEq for AddCommand
Source§fn eq(&self, other: &AddCommand) -> bool
fn eq(&self, other: &AddCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AddCommand
impl Eq for AddCommand
impl StructuralPartialEq for AddCommand
Auto Trait Implementations§
impl Freeze for AddCommand
impl RefUnwindSafe for AddCommand
impl Send for AddCommand
impl Sync for AddCommand
impl Unpin for AddCommand
impl UnsafeUnpin for AddCommand
impl UnwindSafe for AddCommand
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.