Enum rustc_ap_rustc_parse::parser::FlatToken[][src]

pub enum FlatToken {
    Token(Token),
    AttrTarget(AttributesData),
    Empty,
}

A helper struct used when building a AttrAnnotatedTokenStream from a LazyTokenStream. Both delimiter and non-delimited tokens are stored as FlatToken::Token. A vector of FlatTokens is then ‘parsed’ to build up a AttrAnnotatedTokenStream with nested AttrAnnotatedTokenTree::Delimited tokens

Variants

Token(Token)

A token - this holds both delimiter (e.g. ‘{’ and ‘}’) and non-delimiter tokens

AttrTarget(AttributesData)

Holds the AttributesData for an AST node. The AttributesData is inserted directly into the constructed AttrAnnotatedTokenStream as a AttrAnnotatedTokenTree::Attributes

Empty

A special ‘empty’ token that is ignored during the conversion to a AttrAnnotatedTokenStream. This is used to simplify the handling of replace ranges.

Trait Implementations

impl Clone for FlatToken[src]

impl Debug for FlatToken[src]

Auto Trait Implementations

impl !RefUnwindSafe for FlatToken

impl !Send for FlatToken

impl !Sync for FlatToken

impl Unpin for FlatToken

impl !UnwindSafe for FlatToken

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<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

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

impl<T> Instrument for T[src]

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

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

type Error = !

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,