pub enum Op {
Show 15 variants
Pow(Option<OpMod>),
Mul(Option<OpMod>),
Div(Option<OpMod>),
Mod(Option<OpMod>),
Plus(Option<OpMod>),
Minus(Option<OpMod>),
Eq(bool, Option<OpMod>),
Ne(bool, Option<OpMod>),
Lt(bool, Option<OpMod>),
Gt(bool, Option<OpMod>),
Le(bool, Option<OpMod>),
Ge(bool, Option<OpMod>),
And(Option<OpMod>),
Unless(Option<OpMod>),
Or(Option<OpMod>),
}
Expand description
PromQL operators
Variants§
Pow(Option<OpMod>)
^
Mul(Option<OpMod>)
*
Div(Option<OpMod>)
/
Mod(Option<OpMod>)
%
Plus(Option<OpMod>)
+
Minus(Option<OpMod>)
-
Eq(bool, Option<OpMod>)
==
, with optional bool
modifier in addition to regular operator modifiers
Ne(bool, Option<OpMod>)
!=
, with optional bool
modifier in addition to regular operator modifiers
Lt(bool, Option<OpMod>)
<
, with optional bool
modifier in addition to regular operator modifiers
Gt(bool, Option<OpMod>)
>
, with optional bool
modifier in addition to regular operator modifiers
Le(bool, Option<OpMod>)
<=
, with optional bool
modifier in addition to regular operator modifiers
Ge(bool, Option<OpMod>)
>=
, with optional bool
modifier in addition to regular operator modifiers
And(Option<OpMod>)
and
Unless(Option<OpMod>)
unless
Or(Option<OpMod>)
or
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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