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 Encoder[B]
using the supplied partial
function from B
to A
. The encoding will fail for any B
that
f
maps to None
.