/// Generate plain links at every possible lead location (i.e. what's expected for
/// [`SpliceStyle::LeadLabels`]).
Generate plain links at every possible lead location .
Generate plain links at every possible lead location .
fn generate_plain_links(
    methods: &[super::Method],
    link_gen_data: &LinkGenData,
    links: &mut Vec<Link>,
) {
    for starts in link_gen_data.call_starts_by_label.values() {
        for &from_idx in starts {
            let method_data = &methods[from_idx.block.index()];
            let row_after_plain = method_data.plain_course.get_row(from_idx.row + 1).unwrap();
            for ch_mask_from in &method_data.ch_masks {
                add_links_for_call_position(
                    from_idx,
                    ch_mask_from.mask(),
                    row_after_plain,
                    None, // Plain lead
                    "",   // No calling position for leads with no corresponding call
                    None, // Splices to any methods are allowed
                    link_gen_data,
                    links,
                );
            }
        }
    }
}
fn generate_plain_links ( methods : & [ super :: Method ] , link_gen_data : & LinkGenData , links : & mut Vec < Link > , ) { for starts in link_gen_data . call_starts_by_label . values ( ) { for & from_idx in starts { let method_data = & methods [ from_idx . block . index ( ) ] ; let row_after_plain = method_data . plain_course . get_row ( from_idx . row + 1 ) . unwrap ( ) ; for ch_mask_from in & method_data . ch_masks { add_links_for_call_position ( from_idx , ch_mask_from . mask ( ) , row_after_plain , None , // Plain lead " " , // No calling position for leads with no corresponding call None , // Splices to any methods are allowed link_gen_data , links , ) ; } } } }
Generate plain links at every possible lead location (i.e.
Generate plain links at every possible lead location ( i . e .
methods
&[super::Method]
link_gen_data
&LinkGenData
links
&mut Vec<Link>