pub trait Writable {
// Required method
fn write(&self, stream: &mut TokenStream<PreToken>, config: &Config);
}Expand description
An element that can be written to a token stream.
Required Methods§
Sourcefn write(&self, stream: &mut TokenStream<PreToken>, config: &Config)
fn write(&self, stream: &mut TokenStream<PreToken>, config: &Config)
Writes the element to the token stream.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".