pub enum MathFunc {
Show 27 variants
Acos,
Acosh,
Asin,
Asinh,
Atan,
Atan2,
Atanh,
Ceil,
Cos,
Cosh,
Degrees,
Exp,
Floor,
Ln,
Log,
Log10,
Log2,
Mod,
Pi,
Pow,
Radians,
Sin,
Sinh,
Sqrt,
Tan,
Tanh,
Trunc,
}Expand description
A math built-in.
They are their own enum rather than more ScalarFunc variants because they
are a compile-time option in SQLite (SQLITE_ENABLE_MATH_FUNCTIONS) and
share one rule the others do not: an argument outside the domain is NULL
rather than an error or a NaN.
Variants§
Acos
acos(x)
Acosh
acosh(x)
Asin
asin(x)
Asinh
asinh(x)
Atan
atan(x)
Atan2
atan2(y, x)
Atanh
atanh(x)
Ceil
ceil(x) and ceiling(x)
Cos
cos(x)
Cosh
cosh(x)
Degrees
degrees(x)
Exp
exp(x)
Floor
floor(x)
Ln
ln(x)
Log
log(x) base 10, or log(b, x) base b.
Log10
log10(x)
Log2
log2(x)
Mod
mod(x, y)
Pi
pi()
Pow
pow(x, y) and power(x, y)
Radians
radians(x)
Sin
sin(x)
Sinh
sinh(x)
Sqrt
sqrt(x)
Tan
tan(x)
Tanh
tanh(x)
Trunc
trunc(x)
Implementations§
Trait Implementations§
impl Copy for MathFunc
impl Eq for MathFunc
impl StructuralPartialEq for MathFunc
Auto Trait Implementations§
impl Freeze for MathFunc
impl RefUnwindSafe for MathFunc
impl Send for MathFunc
impl Sync for MathFunc
impl Unpin for MathFunc
impl UnsafeUnpin for MathFunc
impl UnwindSafe for MathFunc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more