Called by the implementation when the cookie for constant value is detected in deserialization.
Called by the implementation when the cookie for constant value is detected in deserialization.
the constant representation of this event like type, which
should mix in trait Constant
.
A trait to serialize events which can be both constants and immutable nodes. An implementation mixing in this trait just needs to implement methods
readConstant
to return the constant instance, andread
with theEvent.Targets
argument to return the immutable node instance.The constant event should mix in
Constant
which takes care of writing the appropriate serialization preamble.