pub fn heterogeneous_array<'d, A>(
d: &mut Decoder<'d>,
elems: impl FnOnce(&mut Decoder<'d>, &dyn Fn(u64) -> Result<(), Error>) -> Result<A, Error>,
) -> Result<A, Error>Expand description
Decode any heterogeneous CBOR array, irrespective of whether they’re indefinite or definite.
FIXME: Allow callers to check that the length is not static, but simply matches what is
advertised; e.g. using Option<u64> as a callback.