pub trait ConditionalRuleExt {
// Required methods
fn rule_type(&self) -> Option<&ConditionalType>;
fn priority(&self) -> i32;
fn has_color_scale(&self) -> bool;
fn has_data_bar(&self) -> bool;
fn has_icon_set(&self) -> bool;
fn formulas(&self) -> &[STFormula] ⓘ;
}Expand description
Extension methods for types::ConditionalRule.
Provides convenient access to rule type and visualization sub-elements.
Gated on the sml-styling feature.
ECMA-376 Part 1, Section 18.3.1.10 (cfRule).
Required Methods§
Sourcefn rule_type(&self) -> Option<&ConditionalType>
fn rule_type(&self) -> Option<&ConditionalType>
Get the rule type (e.g., ColorScale, DataBar, CellIs, Expression).
Sourcefn has_color_scale(&self) -> bool
fn has_color_scale(&self) -> bool
Check if this rule uses a color scale visualization.
Sourcefn has_data_bar(&self) -> bool
fn has_data_bar(&self) -> bool
Check if this rule uses a data bar visualization.
Sourcefn has_icon_set(&self) -> bool
fn has_icon_set(&self) -> bool
Check if this rule uses an icon set visualization.
Implementors§
impl ConditionalRuleExt for ConditionalRule
Available on crate feature
sml-styling only.