Function probor::_cbor::decoder::maybe [] [src]

pub fn maybe<A>(r: Result<A, DecodeError>) -> Result<Option<A>, DecodeError>

When decoding an item which may be Undefined this function will map Undefined to None and any other value to Some(value).