Encoder
Supports encoding a value of type
A
to a BitVector
.- Companion
- object
class Object
trait Matchable
class Any
Document{}
Attempts to encode the specified value in to a bit vector.
- Value Params
- value
-
value to encode
- Returns
-
error or binary encoding of the value
Converts this encoder to an
function from
Encoder[B]
using the supplied partialfunction from
B
to A
. The encoding will fail for any B
thatf
maps to None
.