Utilities helping writing plugins for serializers.
The interested reader will carefully pay attention to how the current ones have been implemented. It is not that complicated but it is not exactly straightforward.
Utilities helping writing plugins for serializers. The interested reader will carefully pay attention to how the current ones have been implemented. It is not that complicated but it is not exactly straightforward.
(develop metadata)
(develop registry metadata)
At deserialization, akin to developing a picture in the olden days, rebuild an IMeta
from a :snapshot (see Memento
).
At deserialization, akin to developing a picture in the olden days, rebuild an IMeta from a :snapshot (see [[Memento]]).
(memento x)
If x
has at least a :dvlopt.fdat/key
in it metadata, meaning it has been captured
and is eligeable for serialization, returns a Memento
record.
Nil otherwise. Safe to call on any value.
Serializers typically deal in concrete types, thus here is one. It simply stores the
metadata of the IMeta under :snapshot
. This metadata will be needed at deserialization.
See develop
.
If `x` has at least a `:dvlopt.fdat/key` in it metadata, meaning it has been captured and is eligeable for serialization, returns a `Memento` record. Nil otherwise. Safe to call on any value. Serializers typically deal in concrete types, thus here is one. It simply stores the metadata of the IMeta under `:snapshot`. This metadata will be needed at deserialization. See [[develop]].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close