Function decode

Source
pub fn decode<'buffer, B: Builder<'buffer> + Default, Context>(
    d: &mut Decoder<'buffer>,
    context: &mut Context,
) -> Result<B::Output, Error>
Expand description

Decodes a type from a map using a builder.

Extra keys that the builder does not consume are ignored.

ยงErrors

This fails if the underlying builder fails, or if the data item is not a definite-length map.