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]
.
Returns a BSON reader that returns the result of applying f
on the result of this reader.
Returns a BSON reader that returns the result of applying f
on the result of this reader.
the function to apply
Returns a BSON writer that returns the result of applying f
on the BSON value from this writer.
Returns a BSON writer that returns the result of applying f
on the BSON value from this writer.
the function to apply
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
.