Trait ToBytes
snarkvm_utilities::bytes
pub trait ToBytes { fn write<W: Write>(&self, writer: W) -> IoResult<()>; }
fn write<W: Write>(&self, writer: W) -> IoResult<()>
Serializes self into writer.
self
writer
impl<const N: usize> ToBytes for [u8; N]
impl<const N: usize> ToBytes for [u16; N]
impl<const N: usize> ToBytes for [u32; N]
impl<const N: usize> ToBytes for [u64; N]
impl<L: ToBytes, R: ToBytes> ToBytes for (L, R)
impl ToBytes for u8
impl ToBytes for u16
impl ToBytes for u32
impl ToBytes for u64
impl ToBytes for u128
impl ToBytes for i64
impl ToBytes for ()
fn write<W: Write>(&self, _writer: W) -> IoResult<()>
impl ToBytes for bool
impl<'a, T: 'a + ToBytes> ToBytes for &'a [T]
impl<'a, T: 'a + ToBytes> ToBytes for &'a T
impl ToBytes for BigInteger64
impl ToBytes for BigInteger128
impl ToBytes for BigInteger256
impl ToBytes for BigInteger320
impl ToBytes for BigInteger384
impl ToBytes for BigInteger768
impl ToBytes for BigInteger832
impl<T: ToBytes> ToBytes for Vec<T>