Struct Tag

struct Tag<T, E> { ... }

Tag implementation

Implementations

impl<I, Error: ParseError<I>, T> Parser for Tag<T, Error>

fn process<OM: OutputMode>(self: &mut Self, i: I) -> crate::PResult<OM, I, <Self as >::Output, <Self as >::Error>

impl<T> Any for Tag<T, E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Tag<T, E>

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

impl<T> BorrowMut for Tag<T, E>

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

impl<T> From for Tag<T, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, E> Freeze for Tag<T, E>

impl<T, E> RefUnwindSafe for Tag<T, E>

impl<T, E> Send for Tag<T, E>

impl<T, E> Sync for Tag<T, E>

impl<T, E> Unpin for Tag<T, E>

impl<T, E> UnwindSafe for Tag<T, E>

impl<T, U> Into for Tag<T, E>

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 Tag<T, E>

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

impl<T, U> TryInto for Tag<T, E>

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