bitwise_reduce 0.1.1

Multiple arity bitwise functions
Documentation

bitwise_reduce

Multiple arity bitwise functions

For how to use: Docs

Available Operators:

  • Bitwise Struct, with generic type T for field value and bool for field logical_value.
  • Logical trait, where functions are available. [x] - and(args: Vec<T>): checks if every item in args are Equal to Bitwise.value [] - to_bool() [] - or(args: Vec<T>): checks if one item in args is Equal to Bitwise.value [] - not(args: Vec<T>): checks if every item in args are not Equal to Bitwise.value [] - nor(args: Vec<T>): checks if one item in args is not Equal to Bitwise.value

Implementations of T: [x] - i32 [] - i8 [] - i16 [] - i64 [] - u32 [] - u8 [] - u16 [] - u64 [] - f32 [] - f64 [] - bool [] - String and &str [] - any struct?