[][src]Trait borsh::ser::BorshSerialize

pub trait BorshSerialize {
    fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>;

    fn try_to_vec(&self) -> Result<Vec<u8>, Error> { ... }
}

A data-structure that can be serialized into binary format by NBOR.

Required methods

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

Loading content...

Provided methods

fn try_to_vec(&self) -> Result<Vec<u8>, Error>

Serialize this instance into a vector of bytes.

Loading content...

Implementations on Foreign Types

impl BorshSerialize for i8[src]

impl BorshSerialize for i16[src]

impl BorshSerialize for i32[src]

impl BorshSerialize for i64[src]

impl BorshSerialize for i128[src]

impl BorshSerialize for isize[src]

impl BorshSerialize for u8[src]

impl BorshSerialize for u16[src]

impl BorshSerialize for u32[src]

impl BorshSerialize for u64[src]

impl BorshSerialize for u128[src]

impl BorshSerialize for usize[src]

impl BorshSerialize for f32[src]

impl BorshSerialize for f64[src]

impl BorshSerialize for bool[src]

impl<T> BorshSerialize for Option<T> where
    T: BorshSerialize
[src]

impl BorshSerialize for String[src]

impl<T> BorshSerialize for Vec<T> where
    T: BorshSerialize
[src]

impl<T> BorshSerialize for HashSet<T> where
    T: BorshSerialize + PartialOrd
[src]

impl<K, V> BorshSerialize for HashMap<K, V> where
    K: BorshSerialize + PartialOrd,
    V: BorshSerialize
[src]

impl<K, V> BorshSerialize for BTreeMap<K, V> where
    K: BorshSerialize + PartialOrd,
    V: BorshSerialize
[src]

impl BorshSerialize for SocketAddr[src]

impl BorshSerialize for SocketAddrV4[src]

impl BorshSerialize for SocketAddrV6[src]

impl BorshSerialize for Ipv4Addr[src]

impl BorshSerialize for Ipv6Addr[src]

impl BorshSerialize for [u8; 32][src]

Loading content...

Implementors

Loading content...