/// Generate the course head mask representing the tenors together.  This corresponds to
/// `xxxxxx7890ET...` or just the tenor.
Generate the course head mask representing the tenors together.  This corresponds to
`xxxxxx7890ET...` or just the tenor.
Generate the course head mask representing the tenors together . This corresponds to ` xxxxxx7890ET ... ` or just the tenor .
fn tenors_together_mask(stage: Stage) -> Mask {
    let mut fixed_bells = vec![];
    if stage <= Stage::MINOR {
        // On Minor or below, only fix the tenor
        fixed_bells.push(stage.tenor());
    } else {
        // On Triples and above, fix >=7 (i.e. skip the first 6 bells)
        fixed_bells.extend(stage.bells().skip(6));
    }
    Mask::fix_bells(stage, fixed_bells)
}
fn tenors_together_mask ( stage : Stage ) -> Mask { let mut fixed_bells = vec ! [ ] ; if stage <= Stage :: MINOR { // On Minor or below, only fix the tenor fixed_bells . push ( stage . tenor ( ) ) ; } else { // On Triples and above, fix >=7 (i.e. skip the first 6 bells) fixed_bells . extend ( stage . bells ( ) . skip ( 6 ) ) ; } Mask :: fix_bells ( stage , fixed_bells ) }
Generate the course head mask representing the tenors together.
Generate the course head mask representing the tenors together .
stage
Stage