pub enum LabelSetOp {
NoOp,
Clear,
Append(HashSet<String>),
Remove(HashSet<String>),
}
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§
Source§impl LabelSetOp
impl LabelSetOp
pub fn noop(expression: Expression, span: Option<Span>) -> LabelSetOpTuple
pub fn clear(expression: Expression, span: Option<Span>) -> LabelSetOpTuple
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§
Source§impl Clone for LabelSetOp
impl Clone for LabelSetOp
Source§fn clone(&self) -> LabelSetOp
fn clone(&self) -> LabelSetOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LabelSetOp
impl Debug for LabelSetOp
Source§impl PartialEq for LabelSetOp
impl PartialEq for LabelSetOp
impl Eq for LabelSetOp
impl StructuralPartialEq for LabelSetOp
Auto Trait Implementations§
impl Freeze for LabelSetOp
impl RefUnwindSafe for LabelSetOp
impl Send for LabelSetOp
impl Sync for LabelSetOp
impl Unpin for LabelSetOp
impl UnwindSafe for LabelSetOp
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