pub struct ToString;Expand description
A transformer that converts every non-nested token tree into a string.
This does not further modify literals that are already strings.
§Example
[< hello _ world >]:to_string -> "hello" "_" "world"
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToString
impl RefUnwindSafe for ToString
impl Send for ToString
impl Sync for ToString
impl Unpin for ToString
impl UnsafeUnpin for ToString
impl UnwindSafe for ToString
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
Source§impl<T> Transformer for T
impl<T> Transformer for T
Source§fn transform(
&mut self,
input: TokenStream,
argument: TokenStream,
) -> Result<TokenStream, Error>
fn transform( &mut self, input: TokenStream, argument: TokenStream, ) -> Result<TokenStream, Error>
Transforms an input token stream into an output one. Read more