Struct parkour::util::PosCtx[][src]

pub struct PosCtx<'a, C> {
    pub name: &'a str,
    pub inner: C,
}

The parsing context for a positional argument.

Fields

name: &'a str

The name of the positional argument, used in error messages

inner: C

The context for the argument value

Implementations

impl<'a, C> PosCtx<'a, C>[src]

pub fn new(name: &'a str, inner: C) -> Self[src]

Creates a new PosCtx instance

Trait Implementations

impl<'a, T: FromInputValue> Action<PosCtx<'a, <T as FromInputValue>::Context>> for SetPositional<'_, Option<T>>[src]

impl<'a, C: Clone> Clone for PosCtx<'a, C>[src]

impl<'a, C: Debug> Debug for PosCtx<'a, C>[src]

impl<'a, C: Default> From<&'a str> for PosCtx<'a, C>[src]

Auto Trait Implementations

impl<'a, C> RefUnwindSafe for PosCtx<'a, C> where
    C: RefUnwindSafe
[src]

impl<'a, C> Send for PosCtx<'a, C> where
    C: Send
[src]

impl<'a, C> Sync for PosCtx<'a, C> where
    C: Sync
[src]

impl<'a, C> Unpin for PosCtx<'a, C> where
    C: Unpin
[src]

impl<'a, C> UnwindSafe for PosCtx<'a, C> where
    C: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.