Wrapper

Trait Wrapper 

Source
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§

Required Methods§

Source

fn wrap(val: Self::WrappedType) -> Self

Source

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.

Implementors§