pub struct TokelGroup {
pub delimiter: Delimiter,
pub span: Span,
pub stream: TokelStream,
}Expand description
A tokel-specific TokenGroup.
Fields§
§delimiter: DelimiterThe delimiter of this tokel-group.
Note that any None-delimited TokenTree is acknowledged and will be processed verbatim.
span: SpanA delimiter span.
stream: TokelStreamThe tokel-specific token-stream that this tokel-group embeds.
Trait Implementations§
Source§impl Clone for TokelGroup
impl Clone for TokelGroup
Source§fn clone(&self) -> TokelGroup
fn clone(&self) -> TokelGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokelGroup
impl Debug for TokelGroup
Source§impl Expand for TokelGroup
impl Expand for TokelGroup
Source§fn expand_with(
self,
session: &mut Session,
(): Self::Context,
) -> Result<TokenStream, Error>
fn expand_with( self, session: &mut Session, (): Self::Context, ) -> Result<TokenStream, Error>
Expands the AST node into a fully resolved token stream using explicit context. Read more
Auto Trait Implementations§
impl Freeze for TokelGroup
impl RefUnwindSafe for TokelGroup
impl !Send for TokelGroup
impl !Sync for TokelGroup
impl Unpin for TokelGroup
impl UnsafeUnpin for TokelGroup
impl UnwindSafe for TokelGroup
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