Trait yobicrypto::traits::BinarySerialize [] [src]

pub trait BinarySerialize: Sized {
    fn to_bytes(&self) -> Result<Vec<u8>>;
fn from_bytes(b: &[u8]) -> Result<Self>; }

Trait for object that can be serialized from and to binary.

Required Methods

Serialize to a binary.

Deserialize from a binary.

Implementors