pub fn is_true(&self) -> bool {
        match self {
            Self::Void | Self::Null | Self::False => false,
            Self::Integer(i) => *i != 0,
            Self::Float(f) => *f != 0.0,
            Self::Str(s) => s.len() > 0,
            Self::List(l) => l.len() > 0,
            Self::Dict(d) => d.len() > 0,
            _ => true, // everything else is just true as it exists.
        }
    }
/// Get a value's boolean meaning.
Get a value's boolean meaning.
Get a value ' s boolean meaning .
pub fn is_true(&self) -> bool {
        match self {
            Self::Void | Self::Null | Self::False => false,
            Self::Integer(i) => *i != 0,
            Self::Float(f) => *f != 0.0,
            Self::Str(s) => s.len() > 0,
            Self::List(l) => l.len() > 0,
            Self::Dict(d) => d.len() > 0,
            _ => true, // everything else is just true as it exists.
        }
    }
pub fn is_true ( & self ) -> bool { match self { Self :: Void | Self :: Null | Self :: False => false , Self :: Integer ( i ) => * i != 0 , Self :: Float ( f ) => * f != 0.0 , Self :: Str ( s ) => s . len ( ) > 0 , Self :: List ( l ) => l . len ( ) > 0 , Self :: Dict ( d ) => d . len ( ) > 0 , _ => true , // everything else is just true as it exists. } }
Get a value's boolean meaning.
Get a value ' s boolean meaning .
&self
&self