Function cbor::decoder::or_break
[−]
[src]
pub fn or_break<A>(r: DecodeResult<A>) -> DecodeResult<Option<A>>
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.