4 releases

Uses old Rust 2015

0.2.0 Nov 30, 2018
0.1.2 Nov 30, 2018
0.1.1 Nov 30, 2018
0.1.0 Nov 30, 2018

#34 in #bit-manipulation

MPL-2.0-no-copyleft-exception

8KB
53 lines

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.
    • - 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?

No runtime deps