Skip to main content

mode_check

Function mode_check 

Source
pub fn mode_check(effect: &ReplacementEffect, event: &ReplacementType) -> bool
Expand description

Check if this effect’s event type matches the given event for AddCounter purposes.

Returns true if event is AddCounter, or if event is Moved and the effect handles counter-on-move (has a CounterMap interaction).

Mirrors Java ReplaceAddCounter.modeCheck().