petgraph::algo

Trait FloatMeasure

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

A floating-point measure.

Required Methods§

Source

fn zero() -> Self

Source

fn infinite() -> 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 FloatMeasure for f32

Source§

fn zero() -> Self

Source§

fn infinite() -> Self

Source§

impl FloatMeasure for f64

Source§

fn zero() -> Self

Source§

fn infinite() -> Self

Implementors§