Skip to main content

winning_sign

Function winning_sign 

Source
pub fn winning_sign<'a>(
    a: &'a Arc<SignDefinition>,
    b: &'a Arc<SignDefinition>,
) -> &'a Arc<SignDefinition> ⓘ
Expand description

Pick the winner when several signs land on one line (SG.1).

Higher priority wins; equal priorities break on name. The tiebreak is not arbitrary politeness — without it the painted glyph depends on iteration order, so the same buffer renders differently between runs and a test that passes today fails when a HashMap reseeds.