pub trait FormatAsRustCode {
// Required method
fn format_as_rust_code(&self, tabs: usize) -> String;
}Expand description
Formats a value as const-compatible Rust source code.
Required Methods§
fn format_as_rust_code(&self, tabs: usize) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".