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.

Loading content...

Implementations on Foreign Types

impl Constant for i8[src]

impl Constant for i16[src]

impl Constant for i32[src]

impl Constant for i64[src]

impl Constant for i128[src]

impl Constant for NotNan<f32>[src]

impl Constant for NotNan<f64>[src]

Loading content...

Implementors

Loading content...