Skip to main content

Writable

Trait Writable 

Source
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§

Source

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".

Implementors§