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

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

Required methods

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

Serializes self into writer.

Implementations on Foreign Types

impl<const N: usize> ToBytes for [u8; N][src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl<const N: usize> ToBytes for [u16; N][src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl<const N: usize> ToBytes for [u32; N][src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl<const N: usize> ToBytes for [u64; N][src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for u8[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for u16[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for u32[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for u64[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for u128[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for i64[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for ()[src]

fn write<W: Write>(&self, _writer: W) -> IoResult<()>[src]

impl ToBytes for bool[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl<'a, T: 'a + ToBytes> ToBytes for &'a [T][src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl<'a, T: 'a + ToBytes> ToBytes for &'a T[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

Implementors

impl ToBytes for BigInteger64[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for BigInteger128[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for BigInteger256[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for BigInteger320[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for BigInteger384[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for BigInteger768[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl ToBytes for BigInteger832[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

impl<T: ToBytes> ToBytes for Vec<T>[src]

fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]