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 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 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.
(bSONDocumentWriter: StringAdd).self
(bSONDocumentWriter: StringFormat).self
(bSONDocumentWriter: ArrowAssoc[BSONDocumentWriter[T]]).x
(Since version 2.10.0) Use leftOfArrow instead
(bSONDocumentWriter: Ensuring[BSONDocumentWriter[T]]).x
(Since version 2.10.0) Use resultOfEnsuring instead