cborrs::cbordet

Function cbor_det_mk_simple_value

Source
pub fn cbor_det_mk_simple_value<'a>(v: u8) -> Option<CborDet<'a>>
Expand description

Constructs a Deterministic CBOR object of “simple value” type, with value v. Returns None if the value v lies in the reserved range (24..31), as specified by Table 4 of RFC 8949 Section 3.3; Some(object) otherwise.