pub fn encode(
value: &ValueRef<'_>,
profile: Profile,
limits: Limits,
) -> Result<EncodedCbor, CborError>Expand description
Encode general CBOR into protected output, preserving map order and received items. Constructed arguments use shortest widths; the selected profile controls float shortening, validity, and optional key-order enforcement.