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)

Object Safety§

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§