Creates a BSONWriter based on the given write function.
Creates a BSONWriter based on the given write function.
This function is called within a scala.util.Try.
Creates a BSONWriter based on the given write function.