[−][src]Struct cmdtree::builder::Builder
The persistent Builder
structure to construct a Commander
command tree.
See module level documentation for more information.
Methods
impl<'a> Builder<'a, ()>
[src]
pub fn default_config(root_name: &str) -> Self
[src]
Initialise a Builder
instance with the given root name.
impl<'a, R> Builder<'a, R>
[src]
Trait Implementations
impl<'a, R> BuilderChain<'a, R> for Builder<'a, R>
[src]
fn begin_class(self, name: &str, help_msg: &'a str) -> BuilderResult<'a, R>
[src]
fn end_class(self) -> BuilderResult<'a, R>
[src]
fn root(self) -> BuilderResult<'a, R>
[src]
fn add_action<F>(
self,
name: &str,
help_msg: &'a str,
closure: F
) -> BuilderResult<'a, R> where
F: for<'w> FnMut(Box<dyn Write + 'w>, &[&str]) -> R + Send + 'a,
[src]
self,
name: &str,
help_msg: &'a str,
closure: F
) -> BuilderResult<'a, R> where
F: for<'w> FnMut(Box<dyn Write + 'w>, &[&str]) -> R + Send + 'a,
fn into_commander<'c>(self) -> Result<Commander<'a, R>, BuildError>
[src]
impl<'a, R: PartialEq> PartialEq<Builder<'a, R>> for Builder<'a, R>
[src]
impl<'a, R: Debug> Debug for Builder<'a, R>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,