Skip to main content

Module reference

Module reference 

Source
Expand description

Adapter for serializing a value through a shared reference.

Ref<F> has exactly the same specification and parsing behavior as F, but its executable serializer, preparation, and length APIs accept &T whenever F accepts T. This is useful for nominal-value mappers which reverse-map a struct into a tuple of references to its fields.

Structsยง

Ref