Struct ValidationContext

struct ValidationContext<'i> { ... }

Give access to user input.

Implementations

impl<'i> ValidationContext<'i>

fn input(self: &Self) -> &str

Returns user input.

impl<'i> Freeze for ValidationContext<'i>

impl<'i> RefUnwindSafe for ValidationContext<'i>

impl<'i> Send for ValidationContext<'i>

impl<'i> Sync for ValidationContext<'i>

impl<'i> Unpin for ValidationContext<'i>

impl<'i> UnwindSafe for ValidationContext<'i>

impl<T> Any for ValidationContext<'i>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ValidationContext<'i>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ValidationContext<'i>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for ValidationContext<'i>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ValidationContext<'i>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ValidationContext<'i>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ValidationContext<'i>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>