Function cdr::serialize [] [src]

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

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