Trait clock_zones::Constant [−][src]
pub trait Constant: Clone + PartialEq + PartialOrd { fn max_value() -> Option<Self>; fn min_value() -> Option<Self>; fn zero() -> Self; fn checked_add(&self, other: &Self) -> Option<Self>; fn checked_neg(&self) -> Option<Self>; }
Represents a constant.
Required methods
fn max_value() -> Option<Self>
[src]
The maximal value by which the difference can be bounded.
fn min_value() -> Option<Self>
[src]
The minimal value by which the difference can be bounded.
fn zero() -> Self
[src]
The constant being equivalent to 0
.
fn checked_add(&self, other: &Self) -> Option<Self>
[src]
Overflow checked addition of two constants.
fn checked_neg(&self) -> Option<Self>
[src]
Overflow checked negation of a constant.