pub trait Wrap<T: AsRef<[u8]>>: Sized + Size {
// Required method
unsafe fn wrap_unchecked(data: T) -> Self;
// Provided method
fn wrap(data: T) -> Self { ... }
}Expand description
This trait represents any structure type.
Required Methods§
Sourceunsafe fn wrap_unchecked(data: T) -> Self
unsafe fn wrap_unchecked(data: T) -> Self
Provided Methods§
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.