Function gtmpl::funcs::not
[−]
[src]
pub fn not(args: &[Arc<Any>]) -> Result<Arc<Any>, String>
Returns the boolean negation of its single argument.
Example
use gtmpl::template; let equal = template("{{ not 0 }}", ""); assert_eq!(&equal.unwrap(), "true");