[−][src]Struct rustc_expand::mbe::macro_rules::TokenSet

pub(in mbe::macro_rules) struct TokenSet {
    tokens: Vec<TokenTree>,
    maybe_empty: bool,
}

Fields

tokens: Vec<TokenTree>maybe_empty: bool

Implementations

impl TokenSet[src]

pub(in mbe::macro_rules) fn empty(
) -> Self
[src]

pub(in mbe::macro_rules) fn singleton(
    tok: TokenTree
) -> Self
[src]

pub(in mbe::macro_rules) fn replace_with(
    &mut self,
    tok: TokenTree
)
[src]

pub(in mbe::macro_rules) fn replace_with_irrelevant(
    &mut self
)
[src]

pub(in mbe::macro_rules) fn add_one(
    &mut self,
    tok: TokenTree
)
[src]

pub(in mbe::macro_rules) fn add_one_maybe(
    &mut self,
    tok: TokenTree
)
[src]

pub(in mbe::macro_rules) fn add_all(
    &mut self,
    other: &Self
)
[src]

Trait Implementations

impl Clone for TokenSet[src]

impl Debug for TokenSet[src]

Auto Trait Implementations

impl !RefUnwindSafe for TokenSet

impl !Send for TokenSet

impl !Sync for TokenSet

impl Unpin for TokenSet

impl !UnwindSafe for TokenSet

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.