Skip to main content

unexpected_field

Function unexpected_field 

Source
pub fn unexpected_field<C, A>(field_tag: impl Display) -> Result<A, Error>
where C: ?Sized,
Expand description

Yield a Result<_, decode::Error> that always fails with a comprehensible error message when a map key is unexpected.