Provides a schema, along with encoding and decoding functions for a given type.
Provides a schema, along with encoding and decoding functions for a given type.
- Companion
- object
Value members
Abstract methods
Attempts to decode the specified value using the provided schema.
Attempts to decode the specified value using the provided schema.
Attempts to decode the specified value using the provided schema.
Attempts to decode the specified value using the provided schema.
Attempts to encode the specified value using the provided schema.
Attempts to encode the specified value using the provided schema.
Attempts to encode the specified value using the provided schema.
Attempts to encode the specified value using the provided schema.
The schema or an error if the schema could not be generated.
The schema or an error if the schema could not be generated.
Concrete methods
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Similar to Codec#imap, except the mapping from
A
to B
might be unsuccessful.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Similar to Codec#imap, except the mapping from
A
to B
might be unsuccessful.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Similar to Codec#imap, except the mapping from
A
to B
might be unsuccessful.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Returns a new Codec which uses this Codec
for encoding and decoding, mapping back-and-forth
between types A
and B
.
Similar to Codec#imap, except the mapping from
A
to B
might be unsuccessful.