pub trait FromNative<T> {
// Required method
fn from_native(native: &T) -> Self;
}
Required Methods§
Sourcefn from_native(native: &T) -> Self
fn from_native(native: &T) -> Self
Create from native type
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.