Struct brigadier_rs::parsers::LiteralExecutor
source · pub struct LiteralExecutor<A, C, S> { /* private fields */ }
Expand description
Type returned when calling build_exec
or
build_propagate
on a
LiteralArgument
.
Trait Implementations
sourceimpl<S, C> BuildExecute<C, LiteralExecutor<LiteralArgument<S>, C, S>> for LiteralArgument<S>where
C: TaskLogicNoArgs<S>,
impl<S, C> BuildExecute<C, LiteralExecutor<LiteralArgument<S>, C, S>> for LiteralArgument<S>where
C: TaskLogicNoArgs<S>,
fn build_exec(self, task: C) -> LiteralExecutor<LiteralArgument<S>, C, S>
sourceimpl<S, C, T> BuildPropagate<C, T, LiteralExecutor<LiteralArgument<S>, C, S>> for LiteralArgument<S>where
C: TaskLogic<S, T>,
impl<S, C, T> BuildPropagate<C, T, LiteralExecutor<LiteralArgument<S>, C, S>> for LiteralArgument<S>where
C: TaskLogic<S, T>,
fn build_propagate(self, task: C) -> LiteralExecutor<LiteralArgument<S>, C, S>
sourceimpl<A, C, S> ChildUsage for LiteralExecutor<A, C, S>where
A: ChildUsage,
impl<A, C, S> ChildUsage for LiteralExecutor<A, C, 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, C, S> CommandArgument<S, ()> for LiteralExecutor<A, C, S>where
A: CommandArgument<S, ()>,
impl<A, C, S> CommandArgument<S, ()> for LiteralExecutor<A, C, S>where
A: CommandArgument<S, ()>,
sourceimpl<A, C, U, S> Execute<S, U> for LiteralExecutor<A, C, S>where
S: Copy,
A: CommandArgument<S, ()>,
C: TaskLogicNoArgs<S, Output = U>,
impl<A, C, U, S> Execute<S, U> for LiteralExecutor<A, C, S>where
S: Copy,
A: CommandArgument<S, ()>,
C: TaskLogicNoArgs<S, Output = U>,
sourceimpl<A, C, S> IntoMultipleUsage for LiteralExecutor<A, C, S>where
A: IntoMultipleUsage,
impl<A, C, S> IntoMultipleUsage for LiteralExecutor<A, C, S>where
A: IntoMultipleUsage,
sourceimpl<A, C, T, U, S> Propagate<S, T, U> for LiteralExecutor<A, C, S>where
T: Copy,
S: Copy,
A: CommandArgument<S, ()>,
C: TaskLogic<S, T, Output = U>,
impl<A, C, T, U, S> Propagate<S, T, U> for LiteralExecutor<A, C, S>where
T: Copy,
S: Copy,
A: CommandArgument<S, ()>,
C: TaskLogic<S, T, Output = U>,
sourceimpl<A, C, S> ThenHelp<S> for LiteralExecutor<A, C, S>
impl<A, C, S> ThenHelp<S> for LiteralExecutor<A, C, S>
sourcefn help(self, description: &'static str) -> HelpArgument<S, Self>where
Self: Sized,
fn help(self, description: &'static str) -> HelpArgument<S, Self>where
Self: Sized,
Attach this parser to a
HelpArgument
and a description, the help
name will be the usage returned by the root parser. Read moreAuto Trait Implementations
impl<A, C, S> RefUnwindSafe for LiteralExecutor<A, C, S>where
A: RefUnwindSafe,
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, C, S> Send for LiteralExecutor<A, C, S>where
A: Send,
C: Send,
S: Send,
impl<A, C, S> Sync for LiteralExecutor<A, C, S>where
A: Sync,
C: Sync,
S: Sync,
impl<A, C, S> Unpin for LiteralExecutor<A, C, S>where
A: Unpin,
C: Unpin,
S: Unpin,
impl<A, C, S> UnwindSafe for LiteralExecutor<A, C, S>where
A: UnwindSafe,
C: 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