pub fn as_document_mut(&mut self) -> Option<&mut RawDocumentBuf> {
        match self {
            RawBson::Document(ref mut v) => Some(v),
            _ => None,
        }
    }
/// Gets a mutable reference to the [`RawDocumentBuf`] that's wrapped or returns `None` if the
/// wrapped value isn't a BSON document.
Gets a mutable reference to the [`RawDocumentBuf`] that's wrapped or returns `None` if the
wrapped value isn't a BSON document.
Gets a mutable reference to the [ ` RawDocumentBuf ` ] that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON document .
pub fn as_document_mut(&mut self) -> Option<&mut RawDocumentBuf> {
        match self {
            RawBson::Document(ref mut v) => Some(v),
            _ => None,
        }
    }
pub fn as_document_mut ( & mut self ) -> Option < & mut RawDocumentBuf > { match self { RawBson :: Document ( ref mut v ) => Some ( v ) , _ => None , } }
Gets a mutable reference to the [`RawDocumentBuf`] that's wrapped or returns `None` if the
wrapped value isn't a BSON document.
Gets a mutable reference to the [ ` RawDocumentBuf ` ] that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON document .
&mut self
&mut self