pub struct BinModifier {
pub card: VectorMatchCardinality,
pub matching: Option<LabelModifier>,
pub return_bool: bool,
}Expand description
Binary Expr Modifier
Fields§
§card: VectorMatchCardinalityThe matching behavior for the operation if both operands are Vectors. If they are not this field is None.
matching: Option<LabelModifier>on/ignoring on labels. like a + b, no match modifier is needed.
return_bool: boolIf a comparison operator, return 0/1 rather than filtering.
Implementations§
Source§impl BinModifier
impl BinModifier
pub fn with_card(self, card: VectorMatchCardinality) -> Self
pub fn with_matching(self, matching: Option<LabelModifier>) -> Self
pub fn with_return_bool(self, return_bool: bool) -> Self
pub fn is_labels_joint(&self) -> bool
pub fn intersect_labels(&self) -> Option<Vec<String>>
pub fn is_matching_on(&self) -> bool
pub fn is_matching_labels_not_empty(&self) -> bool
pub fn bool_str(&self) -> &str
Trait Implementations§
Source§impl Clone for BinModifier
impl Clone for BinModifier
Source§fn clone(&self) -> BinModifier
fn clone(&self) -> BinModifier
Returns a copy 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 BinModifier
impl Debug for BinModifier
Source§impl Default for BinModifier
impl Default for BinModifier
Source§impl Display for BinModifier
impl Display for BinModifier
Source§impl PartialEq for BinModifier
impl PartialEq for BinModifier
impl Eq for BinModifier
impl StructuralPartialEq for BinModifier
Auto Trait Implementations§
impl Freeze for BinModifier
impl RefUnwindSafe for BinModifier
impl Send for BinModifier
impl Sync for BinModifier
impl Unpin for BinModifier
impl UnwindSafe for BinModifier
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.