builds a codec from an encoding function and a decoding function.
builds a codec from an encoding function and a decoding function.
the type for the codec instance.
a function that converts an instance of A to a DBObject.
a function that takes a DBObject and attempts to decode it as an A.
a CodecBson[A].
implicitly derives a CodecBson instance for A from existing EncodeBson and DecodeBson instances.