pub unsafe trait UnsafeFrom<T> {
// Required method
unsafe fn unsafe_from(t: T) -> Self;
}
Required Methods§
Sourceunsafe fn unsafe_from(t: T) -> Self
unsafe fn unsafe_from(t: T) -> Self
Converts the object from another object.
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.