pub fn build_flag_combinations(
    constant_flags: u32,
    variable_flags: u32
) -> Vec<u32>
Expand description

Returns a list of flag combinations to test. Returns a vector of the aggregate of every constant flag and every combination of variable flags. Ex. build_flag_combinations(100, 011) would return [100, 110, 101, 111] for flags expressed as binary. We exclude the no rights case as that is an invalid argument in most cases. Ex. build_flag_combinations(0, 011) would return [010, 001, 011] without the 000 case.