[][src]Function muon_rs::to_vec

pub fn to_vec<T>(value: &T) -> Result<Vec<u8>> where
    T: Serialize

Serialize T to a Vec of bytes in MuON format

Errors

Serialization can fail if the serializer for T returns an error. Also, some types are not supported, such as enums and byte arrays.