Trait snarkvm_console_algorithms::ToBytes
source · pub trait ToBytes {
// Required method
fn write_le<W>(&self, writer: W) -> Result<(), Error>
where W: Write,
Self: Sized;
// Provided method
fn to_bytes_le(&self) -> Result<Vec<u8, Global>, Error>
where Self: Sized { ... }
}