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.
Trait Implementations§
Source§impl GetSize for Condition
impl GetSize for Condition
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Source§fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>(
&self,
tracker: TRACKER,
) -> (usize, TRACKER)
fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>( &self, tracker: TRACKER, ) -> (usize, TRACKER)
tracker. Read moreSource§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Source§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
tracker. Read more