pub enum MathOp {
Show 18 variants
Abs,
Ceil,
Floor,
Sign,
Round(i64),
Sqrt,
Exp,
Ln,
Log10,
Sin,
Cos,
Tan,
Cot,
Asin,
Acos,
Atan,
Degrees,
Radians,
}Expand description
One of the numeric functions of one argument, with the digit count ROUND was written with. A second argument that is not a constant is not this op: the compiler leaves that call to the row engine rather than reading a column per row inside a loop that is here to avoid exactly that.
Variants§
Implementations§
Source§impl MathOp
impl MathOp
Sourcepub fn may_raise(self) -> bool
pub fn may_raise(self) -> bool
Whether an argument could leave this function with no answer. The compiler reads it to decide what may sit behind a guard: a function that cannot raise is safe anywhere, and one that can is only safe where the query did not write an order for it.
Sourcepub fn answer_type(self, arg: PhysType) -> Option<PhysType>
pub fn answer_type(self, arg: PhysType) -> Option<PhysType>
The type the answers land in, given the type the arguments have.
Trait Implementations§
impl Copy for MathOp
impl Eq for MathOp
impl StructuralPartialEq for MathOp
Auto Trait Implementations§
impl Forget for MathOp
impl Freeze for MathOp
impl Move for MathOp
impl RefUnwindSafe for MathOp
impl Send for MathOp
impl Sync for MathOp
impl Unpin for MathOp
impl UnsafeUnpin for MathOp
impl UnwindSafe for MathOp
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