Struct vega_lite_4::SequenceParamsBuilder
source · pub struct SequenceParamsBuilder { /* private fields */ }
Expand description
Builder for SequenceParams
.
Implementations§
source§impl SequenceParamsBuilder
impl SequenceParamsBuilder
sourcepub fn sequence_params_as<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn sequence_params_as<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
The name of the generated sequence field.
Default value: "data"
sourcepub fn start<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn start<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The starting value of the sequence (inclusive).
sourcepub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The step value between sequence entries.
Default value: 1
sourcepub fn stop<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn stop<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The ending value of the sequence (exclusive).
sourcepub fn build(&self) -> Result<SequenceParams, SequenceParamsBuilderError>
pub fn build(&self) -> Result<SequenceParams, SequenceParamsBuilderError>
Trait Implementations§
source§impl Clone for SequenceParamsBuilder
impl Clone for SequenceParamsBuilder
source§fn clone(&self) -> SequenceParamsBuilder
fn clone(&self) -> SequenceParamsBuilder
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 SequenceParamsBuilder
impl Send for SequenceParamsBuilder
impl Sync for SequenceParamsBuilder
impl Unpin for SequenceParamsBuilder
impl UnwindSafe for SequenceParamsBuilder
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