pub struct RecursiveRef<T> { /* private fields */ }

Trait Implementations§

source§

impl<T> Clone for RecursiveRef<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Parser<T> for RecursiveRef<T>

source§

fn parse_inner(&self, input: &mut ParserInput<'_>) -> PResult<T>

source§

fn parse(&self, input: &mut ParserInput<'_>) -> PResult<T>

source§

fn parse_str(&self, str: &str) -> PResult<T>

source§

fn parse_str_as_file(&self, str: &str, file_id: FileId) -> PResult<T>

source§

fn then<U, P: Parser<U>>(self, other: P) -> Then<T, Self, U, P>where Self: Sized,

source§

fn then_ignore<U, P: Parser<U>>(self, other: P) -> ThenIgnore<T, Self, U, P>where Self: Sized,

source§

fn ignore_then<U, P: Parser<U>>(self, other: P) -> IgnoreThen<T, Self, U, P>where Self: Sized,

source§

fn followed_by<U, P: Parser<U>>(self, other: P) -> FollowedBy<T, Self, U, P>where Self: Sized,

source§

fn not_followed_by<U, P: Parser<U>>( self, other: P ) -> NotFollowedBy<T, Self, U, P>where Self: Sized,

source§

fn repeated(self) -> Repeated<T, Self, NoAllocContainer>where Self: Sized,

source§

fn repeated_vec(self) -> Repeated<T, Self, Vec<T>>where Self: Sized,

source§

fn repeated_custom<C: Container<T>>(self) -> Repeated<T, Self, C>where Self: Sized,

source§

fn or_not(self) -> OrNot<T, Self>where Self: Sized,

source§

fn map<U, F: Fn(T) -> U + Clone>(self, mapper: F) -> Map<T, Self, U, F>where Self: Sized,

source§

fn spanned(self) -> Spanned<T, Self>where Self: Sized,

source§

fn collect_string(self) -> StringCollected<T, Self>where Self: Sized,

source§

fn critical(self, message: &'static str) -> Critical<T, Self>where Self: Sized,

source§

fn silent(self) -> Silenced<T, Self>where Self: Sized,

source§

fn padded(self) -> Padded<T, Self>where Self: Sized,

source§

fn line_padded(self) -> LinePadded<T, Self>where Self: Sized,

source§

fn delimited_by<L, LP: Parser<L>, R, RP: Parser<R>>( self, left: LP, right: RP ) -> DelimitedBy<L, LP, T, Self, R, RP>where Self: Sized,

source§

fn separated_by<S, P: Parser<S>>( self, sep: P ) -> SeparatedBy<T, Self, S, P, Vec<T>>where Self: Sized,

source§

fn separated_by_custom<S, P: Parser<S>, C: Container<T>>( self, sep: P ) -> SeparatedBy<T, Self, S, P, C>where Self: Sized,

source§

fn to<U: Clone>(self, data: U) -> To<T, Self, U>where Self: Sized,

source§

fn full(self) -> Full<T, Self>where Self: Sized,

source§

fn or<P: Parser<T>>(self, other: P) -> Choice<(Self, P), T>where Self: Sized,

source§

fn validate<F: Fn(&T) -> bool>(self, validator: F) -> Validate<T, Self, F>where Self: Sized,

source§

fn fail(self) -> Fail<T, Self>where Self: Sized,

source§

fn debug<F: for<'a, 'b> Fn(DebugType<'a, 'b, T>) + Clone>( self, debugger: F ) -> Debugging<T, Self, F>where Self: Sized,

Auto Trait Implementations§

§

impl<T> !RefUnwindSafe for RecursiveRef<T>

§

impl<T> !Send for RecursiveRef<T>

§

impl<T> !Sync for RecursiveRef<T>

§

impl<T> Unpin for RecursiveRef<T>

§

impl<T> !UnwindSafe for RecursiveRef<T>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.