Trait petgraph::algo::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

Object Safety§

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§