Struct vega_lite_4::PredicateBuilder
source · pub struct PredicateBuilder { /* private fields */ }
Expand description
Builder for Predicate
.
Implementations§
source§impl PredicateBuilder
impl PredicateBuilder
pub fn not<VALUE: Into<ConditionalValueDefNumberExprRefPredicateComposition>>( &mut self, value: VALUE ) -> &mut Self
pub fn and<VALUE: Into<Vec<PredicateCompositionElement>>>( &mut self, value: VALUE ) -> &mut Self
pub fn or<VALUE: Into<Vec<PredicateCompositionElement>>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn equal<VALUE: Into<Equal>>(&mut self, value: VALUE) -> &mut Self
pub fn equal<VALUE: Into<Equal>>(&mut self, value: VALUE) -> &mut Self
The value that the field should be equal to.
sourcepub fn time_unit<VALUE: Into<TimeUnitUnion>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn time_unit<VALUE: Into<TimeUnitUnion>>( &mut self, value: VALUE ) -> &mut Self
Time unit for the field to be tested.
sourcepub fn range<VALUE: Into<LogicalNotPredicateRange>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn range<VALUE: Into<LogicalNotPredicateRange>>( &mut self, value: VALUE ) -> &mut Self
An array of inclusive minimum and maximum values for a field value of a data item to be included in the filtered data.
sourcepub fn one_of<VALUE: Into<Vec<SelectionInitInterval>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn one_of<VALUE: Into<Vec<SelectionInitInterval>>>( &mut self, value: VALUE ) -> &mut Self
A set of values that the field
’s value should be a member of, for a data item included
in the filtered data.
sourcepub fn lt<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
pub fn lt<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
The value that the field should be less than.
sourcepub fn gt<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
pub fn gt<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
The value that the field should be greater than.
sourcepub fn lte<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
pub fn lte<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
The value that the field should be less than or equals to.
sourcepub fn gte<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
pub fn gte<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self
The value that the field should be greater than or equals to.
sourcepub fn valid<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn valid<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If set to true the field’s value has to be valid, meaning both not null
and not
NaN
.
Trait Implementations§
source§impl Clone for PredicateBuilder
impl Clone for PredicateBuilder
source§fn clone(&self) -> PredicateBuilder
fn clone(&self) -> PredicateBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for PredicateBuilder
impl Send for PredicateBuilder
impl Sync for PredicateBuilder
impl Unpin for PredicateBuilder
impl UnwindSafe for PredicateBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more