pub fn as_javascript_with_scope(&self) -> Option<RawJavaScriptCodeWithScopeRef<'_>> {
        match self {
            RawBson::JavaScriptCodeWithScope(s) => Some(RawJavaScriptCodeWithScopeRef {
                code: s.code.as_str(),
                scope: &s.scope,
            }),
            _ => None,
        }
    }
/// Gets a reference to the [`RawJavaScriptCodeWithScope`] that's wrapped or returns `None`
/// if the wrapped value isn't a BSON JavaScript code with scope value.
Gets a reference to the [`RawJavaScriptCodeWithScope`] that's wrapped or returns `None`
if the wrapped value isn't a BSON JavaScript code with scope value.
Gets a reference to the [ ` RawJavaScriptCodeWithScope ` ] that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON JavaScript code with scope value .
pub fn as_javascript_with_scope(&self) -> Option<RawJavaScriptCodeWithScopeRef<'_>> {
        match self {
            RawBson::JavaScriptCodeWithScope(s) => Some(RawJavaScriptCodeWithScopeRef {
                code: s.code.as_str(),
                scope: &s.scope,
            }),
            _ => None,
        }
    }
pub fn as_javascript_with_scope ( & self ) -> Option < RawJavaScriptCodeWithScopeRef < ' _ > > { match self { RawBson :: JavaScriptCodeWithScope ( s ) => Some ( RawJavaScriptCodeWithScopeRef { code : s . code . as_str ( ) , scope : & s . scope , } ) , _ => None , } }
Gets a reference to the [`RawJavaScriptCodeWithScope`] that's wrapped or returns `None`
if the wrapped value isn't a BSON JavaScript code with scope value.
Gets a reference to the [ ` RawJavaScriptCodeWithScope ` ] that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON JavaScript code with scope value .
&self
&self