WithRustType

Trait WithRustType 

Source
pub trait WithRustType {
    // Required method
    fn rust_type(&self) -> &RustType;

    // Provided method
    fn write_rust_type(&self, b: &mut CodeBuffer) { ... }
}
Expand description

An element with a Rust type.

Required Methods§

Source

fn rust_type(&self) -> &RustType

Gets the Rust type.

Provided Methods§

Source

fn write_rust_type(&self, b: &mut CodeBuffer)

Writes the Rust type.

Implementors§