Trait transit_grid::algorithms::edge_length::EdgeLength
source · 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§
Implementors§
impl<T: CoordFloat + FromPrimitive + Sum> EdgeLength<T> for TransitEdge<T>
EdgeLength trait implementation for TransitEdge
.
Returns the Euclidean length of the TransitEdge
.