[−][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: FnMut(&mut dyn Write, &[&str]) -> R + Send + 'a,
[src]
self,
name: &str,
help_msg: &'a str,
closure: F
) -> BuilderResult<'a, R> where
F: FnMut(&mut dyn Write, &[&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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,