pub struct ConditionalValueDefNumberBuilder { /* private fields */ }Expand description
Builder for ConditionalValueDefNumber.
Implementations§
Source§impl ConditionalValueDefNumberBuilder
impl ConditionalValueDefNumberBuilder
Sourcepub fn test<VALUE: Into<ConditionalValueDefNumberExprRefPredicateComposition>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn test<VALUE: Into<ConditionalValueDefNumberExprRefPredicateComposition>>( &mut self, value: VALUE, ) -> &mut Self
Predicate for triggering the condition
Sourcepub fn value<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn value<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
A constant value in visual domain (e.g., "red" / "#0099ff" / gradient
definition for color, values
between 0 to 1 for opacity).
Sourcepub fn empty<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn empty<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
For selection parameters, the predicate of empty selections returns true by default.
Override this behavior, by setting this property empty: false.
Sourcepub fn param<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn param<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Filter using a parameter name.
Sourcepub fn build(
&self,
) -> Result<ConditionalValueDefNumber, ConditionalValueDefNumberBuilderError>
pub fn build( &self, ) -> Result<ConditionalValueDefNumber, ConditionalValueDefNumberBuilderError>
Trait Implementations§
Source§impl Clone for ConditionalValueDefNumberBuilder
impl Clone for ConditionalValueDefNumberBuilder
Source§fn clone(&self) -> ConditionalValueDefNumberBuilder
fn clone(&self) -> ConditionalValueDefNumberBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for ConditionalValueDefNumberBuilder
impl RefUnwindSafe for ConditionalValueDefNumberBuilder
impl Send for ConditionalValueDefNumberBuilder
impl Sync for ConditionalValueDefNumberBuilder
impl Unpin for ConditionalValueDefNumberBuilder
impl UnsafeUnpin for ConditionalValueDefNumberBuilder
impl UnwindSafe for ConditionalValueDefNumberBuilder
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