Struct vega_lite_4::ScaleBinParamsBuilder
source · pub struct ScaleBinParamsBuilder { /* private fields */ }
Expand description
Builder for ScaleBinParams
.
Implementations§
source§impl ScaleBinParamsBuilder
impl ScaleBinParamsBuilder
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 (lowest-valued) bin boundary.
Default value: The lowest value of the scale domain will be used.
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 size defining the bin interval width.
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 stopping (highest-valued) bin boundary.
Default value: The highest value of the scale domain will be used.
sourcepub fn build(&self) -> Result<ScaleBinParams, ScaleBinParamsBuilderError>
pub fn build(&self) -> Result<ScaleBinParams, ScaleBinParamsBuilderError>
Trait Implementations§
source§impl Clone for ScaleBinParamsBuilder
impl Clone for ScaleBinParamsBuilder
source§fn clone(&self) -> ScaleBinParamsBuilder
fn clone(&self) -> ScaleBinParamsBuilder
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 ScaleBinParamsBuilder
impl Send for ScaleBinParamsBuilder
impl Sync for ScaleBinParamsBuilder
impl Unpin for ScaleBinParamsBuilder
impl UnwindSafe for ScaleBinParamsBuilder
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