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 selection<VALUE: Into<Box<ConditionalValueDefNumberExprRefSelectionComposition>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn selection<VALUE: Into<Box<ConditionalValueDefNumberExprRefSelectionComposition>>>( &mut self, value: VALUE ) -> &mut Self
A selection name, or a series of composed selections.
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 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 ConditionalValueDefNumberBuilder
impl Send for ConditionalValueDefNumberBuilder
impl Sync for ConditionalValueDefNumberBuilder
impl Unpin 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