[−][src]Enum rustc_expand::mbe::macro_parser::MatcherPosHandle
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]
&mut self,
idx: usize,
m: NamedMatch
)
Adds m as a named match for the idx-th metavar.
Trait Implementations
impl<'root, 'tt> Clone for MatcherPosHandle<'root, 'tt>[src]
pub fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'root, 'tt> Deref for MatcherPosHandle<'root, 'tt>[src]
type Target = MatcherPos<'root, 'tt>
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target[src]
impl<'root, 'tt> DerefMut for MatcherPosHandle<'root, 'tt>[src]
pub fn deref_mut(&mut self) -> &mut MatcherPos<'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,
'tt: 'root,
impl<'root, 'tt> !UnwindSafe for MatcherPosHandle<'root, 'tt>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,