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;
}
pub trait Wrapper: DataSize {
type WrappedType: Writable + Readable + DataSize + StaticDataSize;
fn wrap(val: Self::WrappedType) -> Self;
fn unwrap(&self) -> &Self::WrappedType;
}