Skip to main content

write_data

Function write_data 

Source
pub fn write_data<T: Serializer>(
    this: &T,
    context: &mut WriteContext<'_>,
) -> Result<(), Error>
Expand description

Serializes an object implementing Serializer to the write context.

This is a convenience wrapper around T::fory_write_data that delegates to the type’s serialization implementation.