Function lep::builtin::is_truthful[][src]

pub fn is_truthful(x: &Obj) -> bool
Expand description

Convert an object to a boolean value. The (), false, 0 (i64) and "" (String) values are considered false; all other objects are considered true.