Summons an implicit instance of Decoder if one is found, fails compilation otherwise.
Summons an implicit instance of Decoder if one is found, fails compilation otherwise.
This is a slightly faster, less verbose version of implicitly
.
Creates a new Decoder instance from the specified function.
Creates a new Decoder instance from the specified function.
Creates a new Decoder instance from the specified function.
Creates a new Decoder instance from the specified alternatives.
Creates a new Decoder instance from the specified alternatives.
When decoding, each of the specified decoders will be attempted. The result will be the first success if found, or the last failure otherwise.
Provides methods commonly declared by companion objects for specialised decoder types.
Most libraries that use kantan.codecs will declare type aliases for decoders -
CellDecoder
in kantan.csv, for example. DecoderCompanion lets such types have a useful companion object without a lot of code duplication.