Function cbor::decoder::opt
[−]
[src]
pub fn opt<A>(r: DecodeResult<A>) -> DecodeResult<Option<A>>
When decoding an optional item, i.e. a Null
value has to be
considered, this function will map Null
to None
and any
other value to Some(value)
.