pub type DeserializeFn = fn(&mut dyn ShapeDeserializer) -> Result<TypeErasedBox, SerdeError>;Expand description
Type-erased deserialize function.
Takes a ShapeDeserializer positioned at the value to be read and
returns the constructed value as a [TypeErasedBox]. The caller
downcasts to recover the concrete type.
Code generation produces one of these per registered shape; the body
is typically a thin wrapper around the shape’s generated deserialize
method that wraps the result in TypeErasedBox::new(...).