Function probor::_cbor::decoder::or_break
[−]
[src]
pub fn or_break<A>(r: Result<A, DecodeError>) -> Result<Option<A>, DecodeError>
When decoding an indefinite item, every element item can be a Break
value. By wrapping it in or_break
, this case can be handled more
conveniently.