pub fn div_euclid(self, rhs: Self) -> Self {
        let q = (self / rhs).trunc();

        if self % rhs >= Self::ZERO {
            q
        } else if rhs > Self::ZERO {
            q - Self::ONE
        } else {
            q + Self::ONE
        }
    }
/// Calculates Euclidean division, the matching method for `rem_euclid`.
Calculates Euclidean division, the matching method for `rem_euclid`.
Calculates Euclidean division the matching method for ` rem_euclid ` .
pub fn div_euclid(self, rhs: Self) -> Self {
        let q = (self / rhs).trunc();
        if self % rhs >= Self::ZERO {
            q
        } else if rhs > Self::ZERO {
            q - Self::ONE
        } else {
            q + Self::ONE
        }
    }
pub fn div_euclid ( self , rhs : Self ) -> Self { let q = ( self / rhs ) . trunc ( ) ; if self % rhs >= Self :: ZERO { q } else if rhs > Self :: ZERO { q - Self :: ONE } else { q + Self :: ONE } }
Calculates Euclidean division, the matching method for `rem_euclid`.
Calculates Euclidean division the matching method for ` rem_euclid ` .
self
rhs
Self
self
rhs
Self