Skip to main content

Bytable

Trait Bytable 

Source
pub trait Bytable: Sized {
    // Required methods
    fn to_byte_vec(&self) -> Vec<u8> ;
    fn try_from_byte_slice(slice: &[u8]) -> Result<Self, CompactEcashError>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Bytable for G1Projective

Source§

impl Bytable for Scalar

Implementors§