pub trait MyWorldImports {
// Required methods
fn greet(&mut self) -> String;
fn log(&mut self, msg: String);
}Available on crate feature
component-model and crate feature runtime and (docsrs) only.Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".