Trait cry::primitive::bytes::Bytes[][src]

pub trait Bytes: Sized {
    type OutputSize: ArrayLength<u8>;
    fn from_bytes(data: Output<Self>) -> Self;
fn to_bytes(&self) -> Output<Self>; }
Expand description

Convert data format between bytes and struct.

Associated Types

Required methods

Generate A type from bytes.

Convert A type to bytes.

Implementors