[−][src]Struct rustc_parse::parser::Collecting
Used to track additional state needed by collect_tokens
Fields
buf: Vec<TreeAndJoint>Holds the current tokens captured during the most
recent call to collect_tokens
depth: usizeThe depth of the TokenCursor stack at the time
collection was started. When we encounter a TokenTree::Delimited,
we want to record the TokenTree::Delimited itself,
but not any of the inner tokens while we are inside
the new frame (this would cause us to record duplicate tokens).
This depth fields tracks stack depth we are recording tokens.
Only tokens encountered at this depth will be recorded. See
TokenCursor::next for more details.
Trait Implementations
impl Clone for Collecting[src]
fn clone(&self) -> Collecting[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Collecting[src]
Auto Trait Implementations
impl !RefUnwindSafe for Collecting
impl !Send for Collecting
impl !Sync for Collecting
impl Unpin for Collecting
impl !UnwindSafe for Collecting
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,
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.
fn to_owned(&self) -> T[src]
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.
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>,