bitwise_reduce
Multiple arity bitwise functions
For how to use: Docs
Available Operators:
BitwiseStruct, with generic type T for fieldvalueand bool for field logical_value.Logicaltrait, where functions are available.- -
and(args: Vec<T>): checks if every item in args are Equal to Bitwis*value - [] -
to_bool() - [] -
or(args: Vec<T>): checks if one item * args is Equal to Bitwise.va*e - [] -
not(args: Vec<T>): checks if every item in args are not Equal to Bi*ise.value - [] -
nor(args: Vec<T>): checks if one item in args is not Equal to Bitwis*value
- -
Implementations of T:
- - i32
- [] - i8
- [] - i16
- [] - i64
- [] - u32
- [] - u8
- [] - u16
- [] - u64
- [] - f32
- [] - f64
- [] - bool
- [] - String and &str
- [] - any struct?