Struct spreadsheet_ods::condition::Condition
source · pub struct Condition { /* private fields */ }Expand description
Defines a condition for a cell-validation.
Implementations§
source§impl Condition
impl Condition
sourcepub fn content_eq<V: Into<Value>>(value: V) -> Condition
pub fn content_eq<V: Into<Value>>(value: V) -> Condition
Compares the cell-content with a value.
sourcepub fn content_ne<V: Into<Value>>(value: V) -> Condition
pub fn content_ne<V: Into<Value>>(value: V) -> Condition
Compares the cell-content with a value.
sourcepub fn content_lt<V: Into<Value>>(value: V) -> Condition
pub fn content_lt<V: Into<Value>>(value: V) -> Condition
Compares the cell-content with a value.
sourcepub fn content_gt<V: Into<Value>>(value: V) -> Condition
pub fn content_gt<V: Into<Value>>(value: V) -> Condition
Compares the cell-content with a value.
sourcepub fn content_le<V: Into<Value>>(value: V) -> Condition
pub fn content_le<V: Into<Value>>(value: V) -> Condition
Compares the cell-content with a value.
sourcepub fn content_ge<V: Into<Value>>(value: V) -> Condition
pub fn content_ge<V: Into<Value>>(value: V) -> Condition
Compares the cell-content with a value.
sourcepub fn content_text_length_eq(len: u32) -> Condition
pub fn content_text_length_eq(len: u32) -> Condition
Compares the content length to a value.
sourcepub fn content_text_length_ne(len: u32) -> Condition
pub fn content_text_length_ne(len: u32) -> Condition
Compares the content length to a value.
sourcepub fn content_text_length_lt(len: u32) -> Condition
pub fn content_text_length_lt(len: u32) -> Condition
Compares the content length to a value.
sourcepub fn content_text_length_gt(len: u32) -> Condition
pub fn content_text_length_gt(len: u32) -> Condition
Compares the content length to a value.
sourcepub fn content_text_length_le(len: u32) -> Condition
pub fn content_text_length_le(len: u32) -> Condition
Compares the content length to a value.
sourcepub fn content_text_length_ge(len: u32) -> Condition
pub fn content_text_length_ge(len: u32) -> Condition
Compares the content length to a value.
sourcepub fn content_text_length_is_between(from: u32, to: u32) -> Condition
pub fn content_text_length_is_between(from: u32, to: u32) -> Condition
Compares the content length to a range of values.
sourcepub fn content_text_length_is_not_between(from: u32, to: u32) -> Condition
pub fn content_text_length_is_not_between(from: u32, to: u32) -> Condition
Range check.
sourcepub fn content_is_in_list<'a, V>(list: &'a [V]) -> Condition
pub fn content_is_in_list<'a, V>(list: &'a [V]) -> Condition
The value is in this list.
sourcepub fn content_is_in_cellrange(range: CellRange) -> Condition
pub fn content_is_in_cellrange(range: CellRange) -> Condition
The choices are made up from the values in the cellrange.
Warning For the cellrange the distance to the base-cell is calculated, and this result is added to the cell this condition is applied to. You may want to use an absolute cell-reference to avoid this..
sourcepub fn content_is_date_and(vcond: Condition) -> Condition
pub fn content_is_date_and(vcond: Condition) -> Condition
Content is a date and matches a comparison. The date is an integer value that amounts to the days since 30.12.1899.
sourcepub fn content_is_time_and(vcond: Condition) -> Condition
pub fn content_is_time_and(vcond: Condition) -> Condition
Content is a time and matches a comparison. The time is given as a fraction of a day.
sourcepub fn content_is_decimal_number_and(vcond: Condition) -> Condition
pub fn content_is_decimal_number_and(vcond: Condition) -> Condition
Content is a number and matches the comparison.
sourcepub fn content_is_whole_number_and(vcond: Condition) -> Condition
pub fn content_is_whole_number_and(vcond: Condition) -> Condition
Content is a whole number and matches the comparison.
sourcepub fn is_true_formula<S: AsRef<str>>(formula: S) -> Condition
pub fn is_true_formula<S: AsRef<str>>(formula: S) -> Condition
Evaluates a formula.