fn magnitude(self) -> f32
    where
        C: Into<f32>,
    {
        self.iter()
            .map(|n| {
                let n = n.into();
                n * n
            })
            .sum::<f32>()
            .sqrt()
    }
/// Compute the magnitude of a vector
Compute the magnitude of a vector
Compute the magnitude of a vector
fn magnitude(self) -> f32
    where
        C: Into<f32>,
    {
        self.iter()
            .map(|n| {
                let n = n.into();
                n * n
            })
            .sum::<f32>()
            .sqrt()
    }
fn magnitude ( self ) -> f32 where C : Into < f32 > , { self . iter ( ) . map ( | n | { let n = n . into ( ) ; n * n } ) . sum :: < f32 > ( ) . sqrt ( ) }
Compute the magnitude of a vector
Compute the magnitude of a vector
self
self