is_supported

Function is_supported 

Source
pub const fn is_supported(n: usize) -> bool
Expand description

Returns true if n variables is supported by gen() functions, i.e. n <= MAX.

  • 15 variables is supported on 16-bit targets
  • 31 variables is supported on 32-bit targets
  • 63 variables is supported on 64-bit targets
// Assuming `usize` is 64 bits, i.e. `u64`
assert_eq!(truth_values::is_supported(63), true);
assert_eq!(truth_values::is_supported(64), false);

See warning notice in crate root.