petgraph::algo

Trait BoundedMeasure

Source
pub trait BoundedMeasure: Measure + Sub<Self, 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)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BoundedMeasure for f32

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for f64

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for i8

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for i16

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for i32

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for i64

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for i128

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for isize

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for u8

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for u16

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for u32

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for u64

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for u128

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Source§

impl BoundedMeasure for usize

Source§

fn min() -> Self

Source§

fn max() -> Self

Source§

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

Implementors§