Struct brigadier_rs::parsers::NumberArgument
source · pub struct NumberArgument<N, S> { /* private fields */ }
Expand description
Numeric argument parser.
This type can be bounded between a minimum and maximum value (standard MIN
and MAX of type N
). A parse method for type N
must be provided also.
Implementations
sourceimpl<N, S> NumberArgument<N, S>where
N: PartialOrd,
impl<N, S> NumberArgument<N, S>where
N: PartialOrd,
Trait Implementations
sourceimpl<N, S> ChildUsage for NumberArgument<N, S>
impl<N, S> ChildUsage for NumberArgument<N, S>
sourceimpl<S, N> CommandArgument<S, N> for NumberArgument<N, S>where
N: PartialOrd,
impl<S, N> CommandArgument<S, N> for NumberArgument<N, S>where
N: PartialOrd,
sourceimpl<N, S> IntoMultipleUsage for NumberArgument<N, S>
impl<N, S> IntoMultipleUsage for NumberArgument<N, S>
sourceimpl<E, N, S> Then<E> for NumberArgument<N, S>
impl<E, N, S> Then<E> for NumberArgument<N, S>
type Output = CommandThen<NumberArgument<N, S>, E, N, S>
type Output = CommandThen<NumberArgument<N, S>, E, N, S>
Branching parser used by this type.
impl<N, S> ArgumentMarkerDefaultImpl for NumberArgument<N, S>
Auto Trait Implementations
impl<N, S> RefUnwindSafe for NumberArgument<N, S>where
N: RefUnwindSafe,
S: RefUnwindSafe,
impl<N, S> Send for NumberArgument<N, S>where
N: Send,
S: Send,
impl<N, S> Sync for NumberArgument<N, S>where
N: Sync,
S: Sync,
impl<N, S> Unpin for NumberArgument<N, S>where
N: Unpin,
S: Unpin,
impl<N, S> UnwindSafe for NumberArgument<N, S>where
N: 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