pub trait BoundedMeasure: Measure + Sub<Output = Self> {
    // Required methods
    fn min() -> Self;
    fn max() -> Self;
    fn overflowing_add(self, rhs: Self) -> (Self, bool);
}

Required Methods§

source

fn min() -> Self

source

fn max() -> Self

source

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BoundedMeasure for f32

source§

fn min() -> f32

source§

fn max() -> f32

source§

fn overflowing_add(self, rhs: f32) -> (f32, bool)

source§

impl BoundedMeasure for f64

source§

fn min() -> f64

source§

fn max() -> f64

source§

fn overflowing_add(self, rhs: f64) -> (f64, bool)

source§

impl BoundedMeasure for i8

source§

fn min() -> i8

source§

fn max() -> i8

source§

fn overflowing_add(self, rhs: i8) -> (i8, bool)

source§

impl BoundedMeasure for i16

source§

fn min() -> i16

source§

fn max() -> i16

source§

fn overflowing_add(self, rhs: i16) -> (i16, bool)

source§

impl BoundedMeasure for i32

source§

fn min() -> i32

source§

fn max() -> i32

source§

fn overflowing_add(self, rhs: i32) -> (i32, bool)

source§

impl BoundedMeasure for i64

source§

fn min() -> i64

source§

fn max() -> i64

source§

fn overflowing_add(self, rhs: i64) -> (i64, bool)

source§

impl BoundedMeasure for i128

source§

impl BoundedMeasure for isize

source§

impl BoundedMeasure for u8

source§

fn min() -> u8

source§

fn max() -> u8

source§

fn overflowing_add(self, rhs: u8) -> (u8, bool)

source§

impl BoundedMeasure for u16

source§

fn min() -> u16

source§

fn max() -> u16

source§

fn overflowing_add(self, rhs: u16) -> (u16, bool)

source§

impl BoundedMeasure for u32

source§

fn min() -> u32

source§

fn max() -> u32

source§

fn overflowing_add(self, rhs: u32) -> (u32, bool)

source§

impl BoundedMeasure for u64

source§

fn min() -> u64

source§

fn max() -> u64

source§

fn overflowing_add(self, rhs: u64) -> (u64, bool)

source§

impl BoundedMeasure for u128

source§

impl BoundedMeasure for usize

Implementors§