Skip to main content

build_space_for_selection

Function build_space_for_selection 

Source
pub fn build_space_for_selection<S>(
    profile: &Profile,
    selections: &HashMap<GearSlot, Vec<u32>, S>,
) -> Result<PermutationSpace, PermutationError>
where S: BuildHasher,
Expand description

Build a permutation space restricted to user-selected bag/weekly items.

ยงErrors

Returns an error when a slot has too many candidates. Cartesian products not exactly representable by the JavaScript API are also rejected.