pub fn length(&self) -> f64 {
        let mut total_length = 0.0;
        for segment in &self.into_segments(){
            total_length += segment.length();
        }
        total_length
    }
/// Get the road's total length
Get the road's total length
Get the road ' s total length
pub fn length(&self) -> f64 {
        let mut total_length = 0.0;
        for segment in &self.into_segments(){
            total_length += segment.length();
        }
        total_length
    }
pub fn length ( & self ) -> f64 { let mut total_length = 0.0 ; for segment in & self . into_segments ( ) { total_length += segment . length ( ) ; } total_length }
Get the road's total length
Get the road ' s total length
&self
&self