Lines Matching refs:FloatCore
16 pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy { interface
749 impl FloatCore for f32 {
823 impl FloatCore for f64 {
1911 self - FloatCore::trunc(self)
1920 FloatCore::is_nan(self) -> bool;
1921 FloatCore::is_infinite(self) -> bool;
1922 FloatCore::is_finite(self) -> bool;
1923 FloatCore::is_normal(self) -> bool;
1924 FloatCore::classify(self) -> FpCategory;
1925 FloatCore::signum(self) -> Self;
1926 FloatCore::is_sign_positive(self) -> bool;
1927 FloatCore::is_sign_negative(self) -> bool;
1928 FloatCore::recip(self) -> Self;
1929 FloatCore::powi(self, n: i32) -> Self;
1930 FloatCore::to_degrees(self) -> Self;
1931 FloatCore::to_radians(self) -> Self;
1932 FloatCore::max(self, other: Self) -> Self;
1933 FloatCore::min(self, other: Self) -> Self;
2332 use float::FloatCore; in convert_deg_rad()
2335 assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-6); in convert_deg_rad()
2336 assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-6); in convert_deg_rad()
2339 assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-5); in convert_deg_rad()
2340 assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-5); in convert_deg_rad()
2364 use float::FloatCore; in to_degrees_rounding()
2367 FloatCore::to_degrees(1_f32), in to_degrees_rounding()