Struct rustc_expand::mbe::macro_rules::TokenSet
source · Fields
tokens: Vec<TtHandle<'tt>>
maybe_empty: bool
Implementations
sourceimpl<'tt> TokenSet<'tt>
impl<'tt> TokenSet<'tt>
fn empty() -> Self
fn singleton(tt: TtHandle<'tt>) -> Self
fn replace_with(&mut self, tt: TtHandle<'tt>)
fn replace_with_irrelevant(&mut self)
fn add_one(&mut self, tt: TtHandle<'tt>)
fn add_one_maybe(&mut self, tt: TtHandle<'tt>)
fn add_all(&mut self, other: &Self)
Trait Implementations
Auto Trait Implementations
impl<'tt> !RefUnwindSafe for TokenSet<'tt>
impl<'tt> !Send for TokenSet<'tt>
impl<'tt> !Sync for TokenSet<'tt>
impl<'tt> Unpin for TokenSet<'tt>
impl<'tt> !UnwindSafe for TokenSet<'tt>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes