Reads a BSON value and produce an instance of T
.
Reads a BSON value and produce an instance of T
.
This method may throw exceptions at runtime.
If used outside a reader, one should consider readTry(bson: B): Try[T]
or readOpt(bson: B): Option[T]
.
Writes an instance of T
as a BSON value.
Writes an instance of T
as a BSON value.
This method may throw exceptions at runtime.
If used outside a reader, one should consider writeTry(bson: B): Try[T]
or writeOpt(bson: B): Option[T]
.
Tries to produce an instance of T
from the bson
value, returns None
if an error occurred.
Tries to produce an instance of T
from the bson
value, returns None
if an error occurred.
Tries to produce an instance of T
from the bson
value.
Tries to produce an instance of T
from the bson
value.
Tries to produce a BSON value from an instance of T
, returns None
if an error occurred.
Tries to produce a BSON value from an instance of T
, returns None
if an error occurred.
Tries to produce a BSON value from an instance of T
.
Tries to produce a BSON value from an instance of T
.
(bSONHandler: StringAdd).self
(bSONHandler: StringFormat).self
(bSONHandler: ArrowAssoc[BSONHandler[B, T]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(bSONHandler: Ensuring[BSONHandler[B, T]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead