pub trait ToTokens<T: TokenTree> {
// Required method
fn to_tokens(&self) -> impl Iterator<Item = T> + '_;
}Expand description
Trait for getting the token representation of an object.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.