Function borsh::to_vec[][src]

pub fn to_vec<T: ?Sized>(value: &T) -> Result<Vec<u8>> where
    T: BorshSerialize
Expand description

Serialize an object into a vector of bytes.