pub fn as_javascript(&self) -> Option<&'_ str> {
        match self {
            RawBson::JavaScriptCode(s) => Some(s),
            _ => None,
        }
    }
/// Gets a reference to the code that's wrapped or returns `None` if the wrapped value isn't a
/// BSON JavaScript code.
Gets a reference to the code that's wrapped or returns `None` if the wrapped value isn't a
BSON JavaScript code.
Gets a reference to the code that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON JavaScript code .
pub fn as_javascript(&self) -> Option<&'_ str> {
        match self {
            RawBson::JavaScriptCode(s) => Some(s),
            _ => None,
        }
    }
pub fn as_javascript ( & self ) -> Option < & ' _ str > { match self { RawBson :: JavaScriptCode ( s ) => Some ( s ) , _ => None , } }
Gets a reference to the code that's wrapped or returns `None` if the wrapped value isn't a
BSON JavaScript code.
Gets a reference to the code that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON JavaScript code .
&self
&self