Enum rustc_expand::mbe::macro_rules::TtHandle
source · [−]Variants
TtRef(&'tt TokenTree)
This is used in most cases.
Token(TokenTree)
This is only used for implicit token trees. The mbe::TokenTree
must
be mbe::TokenTree::Token
. No other variants are allowed. We store an
mbe::TokenTree
rather than a Token
so that get()
can return a
&mbe::TokenTree
.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'tt> !RefUnwindSafe for TtHandle<'tt>
impl<'tt> !Send for TtHandle<'tt>
impl<'tt> !Sync for TtHandle<'tt>
impl<'tt> Unpin for TtHandle<'tt>
impl<'tt> !UnwindSafe for TtHandle<'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: 88 bytes
Size for each variant:
TtRef
: 8 bytesToken
: 88 bytes