[−][src]Struct cmdtree::builder::Builder
The persistent Builder
structure to construct a Commander
command tree.
See module level documentation for more information.
Implementations
impl Builder<()>
[src]
pub fn default_config(root_name: &str) -> Self
[src]
Initialise a Builder
instance with the given root name.
impl<R> Builder<R>
[src]
Trait Implementations
impl<R> BuilderChain<R> for Builder<R>
[src]
fn begin_class<H: Into<CmdStr>>(
self,
name: &str,
help_msg: H
) -> BuilderResult<R>
[src]
self,
name: &str,
help_msg: H
) -> BuilderResult<R>
fn end_class(self) -> BuilderResult<R>
[src]
fn root(self) -> BuilderResult<R>
[src]
fn add_action<H, F>(
self,
name: &str,
help_msg: H,
closure: F
) -> BuilderResult<R> where
H: Into<CmdStr>,
F: FnMut(&mut dyn Write, &[&str]) -> R + Send + 'static,
[src]
self,
name: &str,
help_msg: H,
closure: F
) -> BuilderResult<R> where
H: Into<CmdStr>,
F: FnMut(&mut dyn Write, &[&str]) -> R + Send + 'static,
fn into_commander<'c>(self) -> Result<Commander<R>, BuildError>
[src]
impl<R: Debug> Debug for Builder<R>
[src]
impl<R: PartialEq> PartialEq<Builder<R>> for Builder<R>
[src]
impl<R> StructuralPartialEq for Builder<R>
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for Builder<R>
impl<R> Send for Builder<R>
impl<R> Sync for Builder<R>
impl<R> Unpin for Builder<R>
impl<R> UnwindSafe for Builder<R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,