Struct brigadier_rs::parsers::DefaultExecutor
source · pub struct DefaultExecutor<A, C, O, S> { /* private fields */ }
Expand description
Default executor for command argument parsers.
This type implements Execute
and Propagate
.
Trait Implementations
sourceimpl<S, A, O, C> BuildExecute<C, DefaultExecutor<A, C, O, S>> for Awhere
A: ArgumentMarkerDefaultImpl + CommandArgument<S, O>,
C: TaskLogic<S, O>,
impl<S, A, O, C> BuildExecute<C, DefaultExecutor<A, C, O, S>> for Awhere
A: ArgumentMarkerDefaultImpl + CommandArgument<S, O>,
C: TaskLogic<S, O>,
fn build_exec(self, task: C) -> DefaultExecutor<A, C, O, S>
sourceimpl<S, A, O, C, T> BuildPropagate<C, T, DefaultExecutor<A, C, O, S>> for Awhere
A: ArgumentMarkerDefaultImpl + CommandArgument<S, O>,
C: TaskLogic<S, (T, O)>,
impl<S, A, O, C, T> BuildPropagate<C, T, DefaultExecutor<A, C, O, S>> for Awhere
A: ArgumentMarkerDefaultImpl + CommandArgument<S, O>,
C: TaskLogic<S, (T, O)>,
fn build_propagate(self, task: C) -> DefaultExecutor<A, C, O, S>
sourceimpl<S, A, C, O> ChildUsage for DefaultExecutor<A, C, O, S>where
A: ChildUsage,
impl<S, A, C, O> ChildUsage for DefaultExecutor<A, C, O, S>where
A: ChildUsage,
type Child = <A as ChildUsage>::Child
type Child = <A as ChildUsage>::Child
Usage that is returned.
sourcefn usage_child(&self) -> Self::Child
fn usage_child(&self) -> Self::Child
Return a new
SingleUsage
, this represents the path from the root up
until this parser. Read moresourceimpl<A, O, C, S> CommandArgument<S, O> for DefaultExecutor<A, O, C, S>where
A: CommandArgument<S, O>,
impl<A, O, C, S> CommandArgument<S, O> for DefaultExecutor<A, O, C, S>where
A: CommandArgument<S, O>,
sourceimpl<A, O, C, U, S> Execute<S, U> for DefaultExecutor<A, C, O, S>where
A: CommandArgument<S, O>,
C: TaskLogic<S, O, Output = U>,
S: Copy,
impl<A, O, C, U, S> Execute<S, U> for DefaultExecutor<A, C, O, S>where
A: CommandArgument<S, O>,
C: TaskLogic<S, O, Output = U>,
S: Copy,
sourceimpl<S, A, C, O> IntoMultipleUsage for DefaultExecutor<A, C, O, S>where
A: IntoMultipleUsage,
impl<S, A, C, O> IntoMultipleUsage for DefaultExecutor<A, C, O, S>where
A: IntoMultipleUsage,
sourceimpl<A, O, C, T, U, S> Propagate<S, T, U> for DefaultExecutor<A, C, O, S>where
T: Copy,
S: Copy,
A: CommandArgument<S, O>,
C: TaskLogic<S, (T, O), Output = U>,
impl<A, O, C, T, U, S> Propagate<S, T, U> for DefaultExecutor<A, C, O, S>where
T: Copy,
S: Copy,
A: CommandArgument<S, O>,
C: TaskLogic<S, (T, O), Output = U>,
Auto Trait Implementations
impl<A, C, O, S> RefUnwindSafe for DefaultExecutor<A, C, O, S>where
A: RefUnwindSafe,
C: RefUnwindSafe,
O: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, C, O, S> Send for DefaultExecutor<A, C, O, S>where
A: Send,
C: Send,
O: Send,
S: Send,
impl<A, C, O, S> Sync for DefaultExecutor<A, C, O, S>where
A: Sync,
C: Sync,
O: Sync,
S: Sync,
impl<A, C, O, S> Unpin for DefaultExecutor<A, C, O, S>where
A: Unpin,
C: Unpin,
O: Unpin,
S: Unpin,
impl<A, C, O, S> UnwindSafe for DefaultExecutor<A, C, O, S>where
A: UnwindSafe,
C: UnwindSafe,
O: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more