Trait deser::de::Deserialize
source · [−]pub trait Deserialize: Sized {
fn deserialize_into(out: &mut Option<Self>) -> SinkHandle<'_>;
}
Expand description
Required methods
fn deserialize_into(out: &mut Option<Self>) -> SinkHandle<'_>
fn deserialize_into(out: &mut Option<Self>) -> SinkHandle<'_>
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.