risingwave_common::types

Trait FloatExt

source
pub trait FloatExt<T: Float>
where Self: Sized + Copy,
{
Show 57 methods // Required methods fn nan() -> Self; fn infinity() -> Self; fn neg_infinity() -> Self; fn neg_zero() -> Self; fn min_value() -> Self; fn min_positive_value() -> Self; fn max_value() -> Self; fn is_nan(self) -> bool; fn is_infinite(self) -> bool; fn is_finite(self) -> bool; fn is_normal(self) -> bool; fn classify(self) -> FpCategory; fn floor(self) -> Self; fn ceil(self) -> Self; fn round(self) -> Self; fn trunc(self) -> Self; fn fract(self) -> Self; fn abs(self) -> Self; fn signum(self) -> Self; fn is_sign_positive(self) -> bool; fn is_sign_negative(self) -> bool; fn mul_add(self, _: Self, _: Self) -> Self; fn recip(self) -> Self; fn powi(self, _: i32) -> Self; fn powf(self, _: Self) -> Self; fn sqrt(self) -> Self; fn exp(self) -> Self; fn exp2(self) -> Self; fn ln(self) -> Self; fn log(self, _: Self) -> Self; fn log2(self) -> Self; fn log10(self) -> Self; fn max(self, _: Self) -> Self; fn min(self, _: Self) -> Self; fn abs_sub(self, _: Self) -> Self; fn cbrt(self) -> Self; fn hypot(self, _: Self) -> Self; fn sin(self) -> Self; fn cos(self) -> Self; fn tan(self) -> Self; fn asin(self) -> Self; fn acos(self) -> Self; fn atan(self) -> Self; fn atan2(self, _: Self) -> Self; fn sin_cos(self) -> (Self, Self); fn exp_m1(self) -> Self; fn ln_1p(self) -> Self; fn sinh(self) -> Self; fn cosh(self) -> Self; fn tanh(self) -> Self; fn asinh(self) -> Self; fn acosh(self) -> Self; fn atanh(self) -> Self; fn integer_decode(self) -> (u64, i16, i8); fn epsilon() -> Self; fn to_degrees(self) -> Self; fn to_radians(self) -> Self;
}
Expand description

Similar to num_traits::Float, but without requiring NumCast and ToPrimitive.

Required Methods§

source

fn nan() -> Self

source

fn infinity() -> Self

source

fn neg_infinity() -> Self

source

fn neg_zero() -> Self

source

fn min_value() -> Self

source

fn min_positive_value() -> Self

source

fn max_value() -> Self

source

fn is_nan(self) -> bool

source

fn is_infinite(self) -> bool

source

fn is_finite(self) -> bool

source

fn is_normal(self) -> bool

source

fn classify(self) -> FpCategory

source

fn floor(self) -> Self

source

fn ceil(self) -> Self

source

fn round(self) -> Self

source

fn trunc(self) -> Self

source

fn fract(self) -> Self

source

fn abs(self) -> Self

source

fn signum(self) -> Self

source

fn is_sign_positive(self) -> bool

source

fn is_sign_negative(self) -> bool

source

fn mul_add(self, _: Self, _: Self) -> Self

source

fn recip(self) -> Self

source

fn powi(self, _: i32) -> Self

source

fn powf(self, _: Self) -> Self

source

fn sqrt(self) -> Self

source

fn exp(self) -> Self

source

fn exp2(self) -> Self

source

fn ln(self) -> Self

source

fn log(self, _: Self) -> Self

source

fn log2(self) -> Self

source

fn log10(self) -> Self

source

fn max(self, _: Self) -> Self

source

fn min(self, _: Self) -> Self

source

fn abs_sub(self, _: Self) -> Self

source

fn cbrt(self) -> Self

source

fn hypot(self, _: Self) -> Self

source

fn sin(self) -> Self

source

fn cos(self) -> Self

source

fn tan(self) -> Self

source

fn asin(self) -> Self

source

fn acos(self) -> Self

source

fn atan(self) -> Self

source

fn atan2(self, _: Self) -> Self

source

fn sin_cos(self) -> (Self, Self)

source

fn exp_m1(self) -> Self

source

fn ln_1p(self) -> Self

source

fn sinh(self) -> Self

source

fn cosh(self) -> Self

source

fn tanh(self) -> Self

source

fn asinh(self) -> Self

source

fn acosh(self) -> Self

source

fn atanh(self) -> Self

source

fn integer_decode(self) -> (u64, i16, i8)

source

fn epsilon() -> Self

source

fn to_degrees(self) -> Self

source

fn to_radians(self) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Float> FloatExt<T> for OrderedFloat<T>
where Self: Sized + Copy,