Function cdr::serialize

source ·
pub fn serialize<T: ?Sized, S, C>(value: &T, size_limit: S) -> Result<Vec<u8>>where
    T: Serialize,
    S: SizeLimit,
    C: Encapsulation,
Expand description

Serializes a serializable object into a Vec of bytes with the encapsulation.