/// Validates that this identifier can be used in an operation defined by the given `operator`.
Validates that this identifier can be used in an operation defined by the given `operator`.
Validates that this identifier can be used in an operation defined by the given ` operator ` .
fn can_be_used_with_operator(&self, operator: &Operator) -> bool {
        match (self, &operator) {
            (
                Identifier::Filename
                | Identifier::LifecycleEventType
                | Identifier::Pid
                | Identifier::Tid
                | Identifier::LineNumber
                | Identifier::Severity,
                Operator::Comparison(ComparisonOperator::Equal)
                | Operator::Comparison(ComparisonOperator::NotEq)
                | Operator::Inclusion(InclusionOperator::In),
            ) => true,
            (Identifier::Severity | Identifier::Timestamp, Operator::Comparison(_)) => true,
            (
                Identifier::Tags,
                Operator::Inclusion(InclusionOperator::HasAny | InclusionOperator::HasAll),
            ) => true,
            _ => false,
        }
    }
fn can_be_used_with_operator ( & self , operator : & Operator ) -> bool { match ( self , & operator ) { ( Identifier :: Filename | Identifier :: LifecycleEventType | Identifier :: Pid | Identifier :: Tid | Identifier :: LineNumber | Identifier :: Severity , Operator :: Comparison ( ComparisonOperator :: Equal ) | Operator :: Comparison ( ComparisonOperator :: NotEq ) | Operator :: Inclusion ( InclusionOperator :: In ) , ) => true , ( Identifier :: Severity | Identifier :: Timestamp , Operator :: Comparison ( _ ) ) => true , ( Identifier :: Tags , Operator :: Inclusion ( InclusionOperator :: HasAny | InclusionOperator :: HasAll ) , ) => true , _ => false , } }
Validates that this identifier can be used in an operation defined by the given `operator`.
Validates that this identifier can be used in an operation defined by the given ` operator ` .
&self
operator
&Operator