Function minicbor::to_vec_with

source ·
pub fn to_vec_with<C, T>(
    x: T,
    ctx: &mut C
) -> Result<Vec<u8>, Error<Infallible>>
where T: Encode<C>,
Expand description

Encode a type implementing Encode and return the encoded byte vector.

Requires feature "alloc".