pub fn as_bool(&self) -> Option<bool> {
        match self {
            RawBson::Boolean(v) => Some(*v),
            _ => None,
        }
    }
/// Gets the wrapped `bool` value or returns `None` if the wrapped value isn't a BSON
/// boolean.
Gets the wrapped `bool` value or returns `None` if the wrapped value isn't a BSON
boolean.
Gets the wrapped ` bool ` value or returns ` None ` if the wrapped value isn ' t a BSON boolean .
pub fn as_bool(&self) -> Option<bool> {
        match self {
            RawBson::Boolean(v) => Some(*v),
            _ => None,
        }
    }
pub fn as_bool ( & self ) -> Option < bool > { match self { RawBson :: Boolean ( v ) => Some ( * v ) , _ => None , } }
Gets the wrapped `bool` value or returns `None` if the wrapped value isn't a BSON
boolean.
Gets the wrapped ` bool ` value or returns ` None ` if the wrapped value isn ' t a BSON boolean .
&self
&self