Struct rustc_expand::mbe::Delimited
source · struct Delimited {
delim: Delimiter,
tts: Vec<TokenTree>,
}
Expand description
Contains the sub-token-trees of a “delimited” token tree such as (a b c)
.
The delimiters are not represented explicitly in the tts
vector.
Fields§
§delim: Delimiter
§tts: Vec<TokenTree>
FIXME: #67062 has details about why this is sub-optimal.
Trait Implementations§
source§impl PartialEq<Delimited> for Delimited
impl PartialEq<Delimited> for Delimited
impl StructuralPartialEq for Delimited
Auto Trait Implementations§
impl !RefUnwindSafe for Delimited
impl !Send for Delimited
impl !Sync for Delimited
impl Unpin for Delimited
impl !UnwindSafe for Delimited
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn 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