Enum rustc_expand::mbe::macro_parser::MatcherPosHandle [−][src]
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>>
fn push_match(&mut self, idx: usize, m: NamedMatch)[src]
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> Clone for MatcherPosHandle<'root, 'tt>[src]impl<'root, 'tt> Deref for MatcherPosHandle<'root, 'tt>[src]
impl<'root, 'tt> Deref for MatcherPosHandle<'root, 'tt>[src]type Target = MatcherPos<'root, 'tt>
type Target = MatcherPos<'root, 'tt>The resulting type after dereferencing.
impl<'root, 'tt> DerefMut for MatcherPosHandle<'root, 'tt>[src]
impl<'root, 'tt> DerefMut for MatcherPosHandle<'root, 'tt>[src]fn deref_mut(&mut self) -> &mut MatcherPos<'root, 'tt>[src]
fn deref_mut(&mut self) -> &mut MatcherPos<'root, 'tt>[src]Mutably dereferences the value.
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more