compare

Function compare 

Source
pub fn compare(left: &RollResult, right: &RollResult) -> RollResult
Expand description

Compare two rolls

returns:

  • 1 if left is greater than right
  • 0 if left is equal to right
  • -1 if left is less than right