pub struct CommandExamples {
pub command: &'static str,
pub examples: &'static [ExampleDoc],
}Expand description
The examples of one command, by the command’s path without majordomus. The root is the
empty string. cli::validate refuses a set whose command the clap declaration does not
have, a command that can be run and has no set, and an example whose argv this crate’s
own parser does not accept.
Fields§
§command: &'static strbench baseline update; the empty string is the root.
examples: &'static [ExampleDoc]Its examples, in the order the reference prints them.
Trait Implementations§
Source§impl Clone for CommandExamples
impl Clone for CommandExamples
Source§fn clone(&self) -> CommandExamples
fn clone(&self) -> CommandExamples
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 moreimpl Copy for CommandExamples
Source§impl Debug for CommandExamples
impl Debug for CommandExamples
impl Eq for CommandExamples
Source§impl PartialEq for CommandExamples
impl PartialEq for CommandExamples
Source§fn eq(&self, other: &CommandExamples) -> bool
fn eq(&self, other: &CommandExamples) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandExamples
Auto Trait Implementations§
impl Freeze for CommandExamples
impl RefUnwindSafe for CommandExamples
impl Send for CommandExamples
impl Sync for CommandExamples
impl Unpin for CommandExamples
impl UnsafeUnpin for CommandExamples
impl UnwindSafe for CommandExamples
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.