Trait Writable

Source
pub trait Writable {
    // Required method
    fn write<W: Write>(&self, writer: &mut W) -> Result<()>;

    // Provided method
    fn serialize(&self) -> Vec<u8>  { ... }
}
Expand description

Trait enabling writing preprocesses and signature shares.

Required Methods§

Source

fn write<W: Write>(&self, writer: &mut W) -> Result<()>

Provided Methods§

Source

fn serialize(&self) -> Vec<u8>

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<T: Writable> Writable for Vec<T>

Source§

fn write<W: Write>(&self, writer: &mut W) -> Result<()>

Implementors§