pub trait Names {
// Required method
fn name(&self, kind: &str, id: u32) -> String;
// Provided method
fn component_name(&self, interface: u32, component: u32) -> String { ... }
}Required Methods§
Provided Methods§
fn component_name(&self, interface: u32, component: u32) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".