petgraph::algo

Trait PositiveMeasure

Source
pub trait PositiveMeasure: Measure + Copy {
    // Required methods
    fn zero() -> Self;
    fn max() -> Self;
}
Expand description

Some measure of positive numbers, assuming positive float-pointing numbers

Required Methods§

Source

fn zero() -> Self

Source

fn max() -> Self

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 PositiveMeasure for f32

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for f64

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for u8

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for u16

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for u32

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for u64

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for u128

Source§

fn zero() -> Self

Source§

fn max() -> Self

Source§

impl PositiveMeasure for usize

Source§

fn zero() -> Self

Source§

fn max() -> Self

Implementors§