Trait snarkvm_utilities::bytes::ToBytes[][src]

pub trait ToBytes: Sized {
    fn write_le<W: Write>(&self, writer: W) -> IoResult<()>;

    fn to_bytes_le(&self) -> Result<Vec<u8>> { ... }
}

Required methods

Writes self into writer as little-endian bytes.

Provided methods

Returns self as a byte array in little-endian order.

Implementations on Foreign Types

Implementors