Function gtmpl::funcs::ne
[−]
[src]
pub fn ne(args: &[Arc<Any>]) -> Result<Arc<Any>, String>
Returns the boolean truth of arg1 != arg2
Example
use gtmpl::template; let not_equal = template("{{ ne 2 . }}", 1); assert_eq!(¬_equal.unwrap(), "true");