Struct serde_tokenstream::TokenStreamWrapper
source ·
[−]pub struct TokenStreamWrapper(_);
Expand description
A Wrapper around proc_macro2::TokenStream that is Deserializable, albeit only in the context of from_tokenstream(). You can use this if, say, your macro allows users to pass in Rust tokens as a configuration option. This can be useful, for example, in a macro that generates code where the caller of that macro might want to augment the generated code.
Implementations
Methods from Deref<Target = TokenStream>
Trait Implementations
type Target = TokenStream
type Target = TokenStream
The resulting type after dereferencing.
Deserialize this value from the given Serde deserializer. Read more