Trait Converter
pub trait Converter<From: ?Sized, Into: ?Sized> {
// Required method
fn convert(from: From) -> Into;
}Available on crate features
tuple and tuple-convert only.Required Methods§
fn convert(from: From) -> Into
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.