Function cbor::decoder::maybe
[−]
[src]
pub fn maybe<A>(r: DecodeResult<A>) -> DecodeResult<Option<A>>
When decoding an item which may be Undefined this function
will map Undefined to None and any other value to Some(value).