pub trait GetRust {
// Required method
fn get_rust(&self) -> String;
// Provided method
fn get_rust_ctx(&self, cx: &mut Context) -> String { ... }
}Required Methods§
Provided Methods§
fn get_rust_ctx(&self, cx: &mut Context) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".