Enum prometheus_parser::LabelSetOp [−][src]
Expand description
An operation on time series labels that might be performed by a particular (sub-)expression.
An expression may perform more than one operation
Variants
NoOp
Convenience op that does nothing
Clear
Clears all labels
Append(HashSet<String>)
Explicitly includes a set of labels in the output set
Remove(HashSet<String>)
Explicitly removes a set of labels from the output set
Implementations
pub fn append(
expression: Expression,
span: Option<Span>,
labels: HashSet<String>
) -> LabelSetOpTuple
pub fn remove(
expression: Expression,
span: Option<Span>,
labels: HashSet<String>
) -> LabelSetOpTuple
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LabelSetOp
impl Send for LabelSetOp
impl Sync for LabelSetOp
impl Unpin for LabelSetOp
impl UnwindSafe for LabelSetOp
Blanket Implementations
Mutably borrows from an owned value. Read more