Macro bones_framework::prelude::bitor
macro_rules! bitor { ($init:expr; $($bits:expr),* $(,)?) => { ... }; }
Expand description
Shorthand for combining bitsets with bit_or.
Returns the value of the initial argument after combining the bits.
use bitset_core::{bitor, BitSet};
let bits = bitor!([0u8; 4]; [0x01; 4], [0x10; 4]);
assert_eq!(bits, [0x11; 4]);