io.github.netvl.picopickle.TypesComponent
Serializes the given value into its backend representation.
Serializes the given value into its backend representation.
This method also accepts an accumulator parameter which is used
when serializing complex objects which require multiple serializers
to work together (for example, serializing HList
s to obtain a map).
This method shouldn't be invoked directly as it is for internal use. Use write method instead.
a value to be serialized
possibly absent accumulator
serialized representation of value
A type class trait for writing objects of the specified type to their backend representation.
All serialization is done by implicit instances of this trait.
Most clients don't need to subclass this trait directly; use Writer companion object to create writers.
Serialization is a success-only process: correctly written serializers will always succeed to write their objects. It is expected that Writer instances can handle all values of their source types, that is, writers are like total functions.
source type