pub enum Fragment {
Expr(TokenStream),
Block(TokenStream),
}
Variants§
Expr(TokenStream)
Tokens that can be used as an expression.
Block(TokenStream)
Tokens that can be used inside a block. The surrounding curly braces are not part of these tokens.
Trait Implementations§
source§impl AsRef<TokenStream> for Fragment
impl AsRef<TokenStream> for Fragment
source§fn as_ref(&self) -> &TokenStream
fn as_ref(&self) -> &TokenStream
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl !Send for Fragment
impl !Sync for Fragment
impl Unpin for Fragment
impl UnwindSafe for Fragment
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