Struct ByRef

struct ByRef<'p, P, I, O, E> { ... }

Parser implementation for Parser::by_ref

Implementations

impl<'p, P, I, O, E> Freeze for ByRef<'p, P, I, O, E>

impl<'p, P, I, O, E> RefUnwindSafe for ByRef<'p, P, I, O, E>

impl<'p, P, I, O, E> Send for ByRef<'p, P, I, O, E>

impl<'p, P, I, O, E> Sync for ByRef<'p, P, I, O, E>

impl<'p, P, I, O, E> Unpin for ByRef<'p, P, I, O, E>

impl<'p, P, I, O, E> UnsafeUnpin for ByRef<'p, P, I, O, E>

impl<'p, P, I, O, E> UnwindSafe for ByRef<'p, P, I, O, E>

impl<I, O, E, P> ModalParser for ByRef<'p, P, I, O, E>

impl<I, O, E, P> Parser for ByRef<'_, P, I, O, E>

fn parse_next(self: &mut Self, i: &mut I) -> Result<O, E>

impl<T> Any for ByRef<'p, P, I, O, E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ByRef<'p, P, I, O, E>

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

impl<T> BorrowMut for ByRef<'p, P, I, O, E>

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

impl<T> From for ByRef<'p, P, I, O, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ByRef<'p, P, I, O, 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 ByRef<'p, P, I, O, E>

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

impl<T, U> TryInto for ByRef<'p, P, I, O, E>

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