/// Returns the place bells which are always preserved by plain leads and all calls of a single
/// method (e.g. hunt bells in non-variable-hunt compositions).
Returns the place bells which are always preserved by plain leads and all calls of a single
method .
Returns the place bells which are always preserved by plain leads and all calls of a single method .
fn fixed_bells_of_method(method: &super::Method, calls: &CallVec<super::Call>) -> HashSet<Bell> {
    // Start the set with the bells which are fixed by the plain lead of every method
    let mut fixed_bells: HashSet<Bell> = method.lead_head().fixed_bells().collect();
    for call in calls {
        // For each call, remove the bells which aren't fixed by that call (e.g. the 2 in
        // Grandsire is unaffected by a plain lead, but affected by calls)
        filter_bells_fixed_by_call(method, call, &mut fixed_bells);
    }
    fixed_bells
}
fn fixed_bells_of_method ( method : & super :: Method , calls : & CallVec < super :: Call > ) -> HashSet < Bell > { // Start the set with the bells which are fixed by the plain lead of every method let mut fixed_bells : HashSet < Bell > = method . lead_head ( ) . fixed_bells ( ) . collect ( ) ; for call in calls { // For each call, remove the bells which aren't fixed by that call (e.g. the 2 in // Grandsire is unaffected by a plain lead, but affected by calls) filter_bells_fixed_by_call ( method , call , & mut fixed_bells ) ; } fixed_bells }
Returns the place bells which are always preserved by plain leads and all calls of a single
method (e.g.
Returns the place bells which are always preserved by plain leads and all calls of a single method ( e . g .
method
&super::Method
calls
&CallVec<super::Call>