Trait brontes_types::normalized_actions::comparison::ActionCmp
source · pub trait ActionCmp<O> {
// Required method
fn is_superior_action(&self, other: &O) -> bool;
}
Expand description
For two actions, will tell you if the actions is the more superior action (a swap is superior to a transfer of a swap)
Required Methods§
sourcefn is_superior_action(&self, other: &O) -> bool
fn is_superior_action(&self, other: &O) -> bool
checks if this action is the superior action. eg Swap is the superior action to a transfer related to the swap