pub trait Mapper<T> {
// Required method
fn to(&self) -> T;
}Expand description
Trait defining a mapper converting itself to a destination Type of T
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".