Skip to main content

read_data

Function read_data 

Source
pub fn read_data<T: Serializer + ForyDefault>(
    context: &mut ReadContext<'_>,
) -> Result<T, Error>
Expand description

Deserializes an object implementing Serializer from the read context.

This is a convenience wrapper around T::fory_read_data that delegates to the type’s deserialization implementation. Requires ForyDefault for instance creation.