1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use crate::ops::prelude::*;

element_map!(Not, [bool], |a: bool| !a);

element_bin!(And, [bool] { |a, b| a & b});
element_bin!(Or, [bool] { |a, b| a | b});
element_bin!(Xor, [bool] { |a, b| a ^ b});

element_bin!(Equals, [bool, u8, i8, i16, i32, i64, f32, f64, TDim] => bool { |a,b| a==b });
element_bin!(Lesser, [u8, i8, i16, i32, i64, f32, f64] => bool { |a,b| a<b });
element_bin!(Greater, [u8, i8, i16, i32, i64, f32, f64] => bool { |a,b| a>b });