Module gardiz::rect

source ·
Expand description

This module exports rectangle utilities.

Structs

Traits

  • Performs addition that returns None instead of wrapping around on overflow.
  • Performs subtraction that returns None instead of wrapping around on underflow.
  • Defines a multiplicative identity element for Self.
  • Performs addition that saturates at the numeric bounds instead of overflowing.
  • Performs subtraction that saturates at the numeric bounds instead of overflowing.
  • Performs addition that wraps around on overflow.
  • Performs subtraction that wraps around on overflow.
  • Defines an additive identity element for Self.