/// Returns the `bool` representation of this value or `None` if is not a bool literal.
Returns the `bool` representation of this value or `None` if is not a bool literal.
Returns the ` bool ` representation of this value or ` None ` if is not a bool literal .
pub fn to_bool_literal(&self) -> Option<bool> {
        if let Value::Literal(lit) = self {
            return match lit {
                Lit::Bool(x) => Some(x.value),
                _ => None,
            };
        }
        None
    }
pub fn to_bool_literal ( & self ) -> Option < bool > { if let Value :: Literal ( lit ) = self { return match lit { Lit :: Bool ( x ) => Some ( x . value ) , _ => None , } ; } None }
Returns the `bool` representation of this value or `None` if is not a bool literal.
Returns the ` bool ` representation of this value or ` None ` if is not a bool literal .
&self