pub fn is_experimentation_enabled(&self, reason: &Reason) -> bool {
        match reason {
            _ if reason.is_in_experiment() => true,
            Reason::Fallthrough { .. } => self.track_events_fallthrough,
            Reason::RuleMatch { rule_index, .. } => self
                .rules
                .get(*rule_index)
                .map(|rule| rule.track_events)
                .unwrap_or(false),
            _ => false,
        }
    }
/// Returns true if, based on the [crate::Reason] returned by the flag evaluation, an event for
/// that evaluation should have full tracking enabled and always report the reason even if the
/// application didn't explicitly request this. For instance, this is true if a rule was
/// matched that had tracking enabled for that specific rule.
Returns true if, based on the [crate::Reason] returned by the flag evaluation, an event for
that evaluation should have full tracking enabled and always report the reason even if the
application didn't explicitly request this. For instance, this is true if a rule was
matched that had tracking enabled for that specific rule.
Returns true if based on the [ crate :: Reason ] returned by the flag evaluation an event for that evaluation should have full tracking enabled and always report the reason even if the application didn ' t explicitly request this . For instance this is true if a rule was matched that had tracking enabled for that specific rule .
pub fn is_experimentation_enabled(&self, reason: &Reason) -> bool {
        match reason {
            _ if reason.is_in_experiment() => true,
            Reason::Fallthrough { .. } => self.track_events_fallthrough,
            Reason::RuleMatch { rule_index, .. } => self
                .rules
                .get(*rule_index)
                .map(|rule| rule.track_events)
                .unwrap_or(false),
            _ => false,
        }
    }
pub fn is_experimentation_enabled ( & self , reason : & Reason ) -> bool { match reason { _ if reason . is_in_experiment ( ) => true , Reason :: Fallthrough { .. } => self . track_events_fallthrough , Reason :: RuleMatch { rule_index , .. } => self . rules . get ( * rule_index ) . map ( | rule | rule . track_events ) . unwrap_or ( false ) , _ => false , } }
Returns true if, based on the [crate::Reason] returned by the flag evaluation, an event for
that evaluation should have full tracking enabled and always report the reason even if the
application didn't explicitly request this.
Returns true if based on the [ crate :: Reason ] returned by the flag evaluation an event for that evaluation should have full tracking enabled and always report the reason even if the application didn ' t explicitly request this .
&self
reason
&Reason
&self
reason
&Reason