[−][src]Struct papyrus::cmds::CommandBuilder
The persistent Builder
structure to construct a Commander
command tree.
See module level documentation for more information.
Methods
impl Builder<()>
[src]
pub fn default_config(root_name: &str) -> Builder<()>
[src]
Initialise a Builder
instance with the given root name.
impl<R> Builder<R>
[src]
pub fn new(root_name: &str) -> Builder<R>
[src]
Initialise new Builder
instance with no configuration.
Trait Implementations
impl<R> BuilderChain<R> for Builder<R>
[src]
fn begin_class<H>(
self,
name: &str,
help_msg: H
) -> Result<Builder<R>, BuildError> where
H: Into<CmdStr>,
[src]
self,
name: &str,
help_msg: H
) -> Result<Builder<R>, BuildError> where
H: Into<CmdStr>,
fn end_class(self) -> Result<Builder<R>, BuildError>
[src]
fn root(self) -> Result<Builder<R>, BuildError>
[src]
fn add_action<H, F>(
self,
name: &str,
help_msg: H,
closure: F
) -> Result<Builder<R>, BuildError> where
F: FnMut(&mut dyn Write, &[&str]) -> R + Send + 'static,
H: Into<CmdStr>,
[src]
self,
name: &str,
help_msg: H,
closure: F
) -> Result<Builder<R>, BuildError> where
F: FnMut(&mut dyn Write, &[&str]) -> R + Send + 'static,
H: Into<CmdStr>,
fn into_commander(self) -> Result<Commander<R>, BuildError>
[src]
impl<R> Debug for Builder<R> where
R: Debug,
[src]
R: Debug,
impl<R> PartialEq<Builder<R>> for Builder<R> where
R: PartialEq<R>,
[src]
R: PartialEq<R>,
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> Erased for 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<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,