pub trait Hypot { // Required method fn hypot(self, other: Self) -> Self; }
Methods for calculating the lengths of a hypotenuse.
Returns the length of the hypotenuse formed by self and other, i.e. sqrt(self * self + other * other).
self
other
sqrt(self * self + other * other)