pub fn is_sql_true(&self) -> Result<bool, Error> {
        match self {
            Self::Null => Ok(false),
            Self::Number(n) => Ok(n.sql_sign() != Ordering::Equal),
            _ => Err(Error::InvalidArguments(format!("truth value of {} is undefined", self))),
        }
    }
/// Checks whether this value is truthy in SQL sense.
///
/// All nonzero numbers are considered "true", and both NULL and zero are
/// considered "false". All other types cause the `InvalidArguments` error.
Checks whether this value is truthy in SQL sense.
All nonzero numbers are considered "true", and both NULL and zero are
considered "false". All other types cause the `InvalidArguments` error.
Checks whether this value is truthy in SQL sense . All nonzero numbers are considered " true " and both NULL and zero are considered " false " . All other types cause the ` InvalidArguments ` error .
pub fn is_sql_true(&self) -> Result<bool, Error> {
        match self {
            Self::Null => Ok(false),
            Self::Number(n) => Ok(n.sql_sign() != Ordering::Equal),
            _ => Err(Error::InvalidArguments(format!("truth value of {} is undefined", self))),
        }
    }
pub fn is_sql_true ( & self ) -> Result < bool , Error > { match self { Self :: Null => Ok ( false ) , Self :: Number ( n ) => Ok ( n . sql_sign ( ) != Ordering :: Equal ) , _ => Err ( Error :: InvalidArguments ( format ! ( " " self ) ) ) , } }
Checks whether this value is truthy in SQL sense.
Checks whether this value is truthy in SQL sense .
&self
&self