[−][src]Enum rustc_expand::mbe::macro_parser::MatcherPosHandle

pub(in mbe::macro_parser) enum MatcherPosHandle<'root, 'tt> {
    Ref(&'root mut MatcherPos<'root, 'tt>),
    Box(Box<MatcherPos<'root, 'tt>>),
}

Variants

Ref(&'root mut MatcherPos<'root, 'tt>)
Box(Box<MatcherPos<'root, 'tt>>)

Methods from Deref<Target = MatcherPos<'root, 'tt>>

pub(in mbe::macro_parser) fn push_match(
    &mut self,
    idx: usize,
    m: NamedMatch
)
[src]

Adds m as a named match for the idx-th metavar.

Trait Implementations

impl<'root, 'tt> Clone for MatcherPosHandle<'root, 'tt>[src]

impl<'root, 'tt> Deref for MatcherPosHandle<'root, 'tt>[src]

type Target = MatcherPos<'root, 'tt>

The resulting type after dereferencing.

impl<'root, 'tt> DerefMut for MatcherPosHandle<'root, 'tt>[src]

Auto Trait Implementations

impl<'root, 'tt> !RefUnwindSafe for MatcherPosHandle<'root, 'tt>

impl<'root, 'tt> !Send for MatcherPosHandle<'root, 'tt>

impl<'root, 'tt> !Sync for MatcherPosHandle<'root, 'tt>

impl<'root, 'tt> Unpin for MatcherPosHandle<'root, 'tt> where
    'tt: 'root, 

impl<'root, 'tt> !UnwindSafe for MatcherPosHandle<'root, 'tt>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.