pub struct Call {
pub func: Function,
pub args: FunctionArgs,
}Expand description
Call represents Prometheus Function. Some functions have special cases:
§exp
exp(v instant-vector) calculates the exponential function for all elements in v. Special cases are:
Exp(+Inf) = +Inf
Exp(NaN) = NaN§ln
ln(v instant-vector) calculates the natural logarithm for all elements in v. Special cases are:
ln(+Inf) = +Inf
ln(0) = -Inf
ln(x < 0) = NaN
ln(NaN) = NaNTODO: support more special cases of function call
- acos()
- acosh()
- asin()
- asinh()
- atan()
- atanh()
- cos()
- cosh()
- sin()
- sinh()
- tan()
- tanh()
Fields§
§func: Function§args: FunctionArgsTrait Implementations§
Source§impl Prettier for Call
impl Prettier for Call
Source§fn format(&self, level: usize, max: usize) -> String
fn format(&self, level: usize, max: usize) -> String
override format if expr needs to be split into multiple lines
Source§fn pretty(&self, level: usize, max: usize) -> String
fn pretty(&self, level: usize, max: usize) -> String
max param is short for max_characters_per_line.
Source§fn needs_split(&self, max: usize) -> bool
fn needs_split(&self, max: usize) -> bool
override needs_split to return false, in order not to split multiple lines
impl Eq for Call
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Freeze for Call
impl !RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl !UnwindSafe for Call
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.