pub trait Wrapper: DataSize {
type WrappedType: Writable + Readable + DataSize + StaticDataSize;
// Required methods
fn wrap(val: Self::WrappedType) -> Self;
fn unwrap(&self) -> &Self::WrappedType;
}Required Associated Types§
type WrappedType: Writable + Readable + DataSize + StaticDataSize
Required Methods§
fn wrap(val: Self::WrappedType) -> Self
fn unwrap(&self) -> &Self::WrappedType
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.