pub trait EdgeLength<T: CoordFloat + Sum> {
    // Required method
    fn length(&self) -> T;
}
Expand description

EdgeLength trait provides the length of an element. It is designed to work with types that implement the CoordFloat, FromPrimitive, and Sum traits.

Required Methods§

source

fn length(&self) -> T

Returns the Euclidean length of the element.

Implementors§

source§

impl<T: CoordFloat + FromPrimitive + Sum> EdgeLength<T> for TransitEdge<T>

EdgeLength trait implementation for TransitEdge. Returns the Euclidean length of the TransitEdge.