Trait otter_api_tests::geometry::CheckedArith [−]
pub trait CheckedArith: 'static + Copy + Clone + Debug { fn checked_add(self, rhs: Self) -> Result<Self, CoordinateOverflow>; fn checked_sub(self, rhs: Self) -> Result<Self, CoordinateOverflow>; fn checked_neg(self) -> Result<Self, CoordinateOverflow>; }
Required methods
fn checked_add(self, rhs: Self) -> Result<Self, CoordinateOverflow>fn checked_sub(self, rhs: Self) -> Result<Self, CoordinateOverflow>fn checked_neg(self) -> Result<Self, CoordinateOverflow>Implementations on Foreign Types
impl CheckedArith for f64
impl CheckedArith for f64pub fn checked_add(self, rhs: f64) -> Result<f64, CoordinateOverflow>pub fn checked_sub(self, rhs: f64) -> Result<f64, CoordinateOverflow>pub fn checked_neg(self) -> Result<f64, CoordinateOverflow>impl CheckedArith for i32
impl CheckedArith for i32pub fn checked_add(self, rhs: i32) -> Result<i32, CoordinateOverflow>pub fn checked_sub(self, rhs: i32) -> Result<i32, CoordinateOverflow>pub fn checked_neg(self) -> Result<i32, CoordinateOverflow>