Struct xlsxwriter::worksheet::filter::FilterRule
source · pub struct FilterRule {
pub criteria: FilterCriteria,
pub value: StringOrFloat,
}
Expand description
Options for autofilter rules.
Fields§
§criteria: FilterCriteria
The FilterCriteria to define the rule.
value: StringOrFloat
value to which the criteria applies.
Implementations§
source§impl FilterRule
impl FilterRule
pub fn new<T: Into<StringOrFloat>>(criteria: FilterCriteria, value: T) -> Self
Trait Implementations§
source§impl Clone for FilterRule
impl Clone for FilterRule
source§fn clone(&self) -> FilterRule
fn clone(&self) -> FilterRule
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 FilterRule
impl Debug for FilterRule
source§impl Default for FilterRule
impl Default for FilterRule
source§fn default() -> FilterRule
fn default() -> FilterRule
Returns the “default value” for a type. Read more
source§impl PartialEq<FilterRule> for FilterRule
impl PartialEq<FilterRule> for FilterRule
source§fn eq(&self, other: &FilterRule) -> bool
fn eq(&self, other: &FilterRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FilterRule> for FilterRule
impl PartialOrd<FilterRule> for FilterRule
source§fn partial_cmp(&self, other: &FilterRule) -> Option<Ordering>
fn partial_cmp(&self, other: &FilterRule) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more