Struct moniker::Rec[][src]

pub struct Rec<P> {
    pub unsafe_pattern: P,
}

Recursively bind a pattern in itself

Mutually recursive bindings can be modelled by combining this type with the pattern implementations for Vec<P> and (P1, P2).

Fields

Methods

impl<P> Rec<P>
[src]

Trait Implementations

impl<P: Debug> Debug for Rec<P>
[src]

Formats the value using the given formatter. Read more

impl<P: Clone> Clone for Rec<P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: PartialEq> PartialEq for Rec<P>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<P: Eq> Eq for Rec<P>
[src]

impl<N, P> BoundPattern<N> for Rec<P> where
    P: BoundPattern<N>, 
[src]

Alpha equivalence in a pattern context

Returns the binders in this pattern

Auto Trait Implementations

impl<P> Send for Rec<P> where
    P: Send

impl<P> Sync for Rec<P> where
    P: Sync