Function probor::_cbor::opt
[−]
[src]
pub fn opt<A>(r: Result<A, DecodeError>) -> Result<Option<A>, DecodeError>
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)
.