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
type OutputSize: ArrayLength<u8>
Required methods
fn from_bytes(data: Output<Self>) -> Self
fn from_bytes(data: Output<Self>) -> Self
Generate A type from bytes.