pub trait Deserialize: Sized {
    fn deserialize_into(out: &mut Option<Self>) -> SinkHandle<'_>;
}
Expand description

A trait for deserializable types.

A type is deserializable if it can deserialize into a Sink. The actual deserialization logic itself is implemented by the returned Sink.

Required methods

Creates a sink that deserializes the value into the given slot.

There are two typical implementations for this method: the common one is to return a SlotWrapper. Custom types will most likely just return that. An alternative method is to “wrap” the deserializable in a custom sink.

Implementations on Foreign Types

Implementors