Trait cornflakes::Wrapper

source ·
pub trait Wrapper: DataSize {
    type WrappedType: Writable + Readable + DataSize + StaticDataSize;

    fn wrap(val: Self::WrappedType) -> Self;
    fn unwrap(&self) -> &Self::WrappedType;
}

Required Associated Types§

Required Methods§

Implementors§