Struct vega_lite_4::GradientStopBuilder
source · pub struct GradientStopBuilder { /* private fields */ }
Expand description
Builder for GradientStop
.
Implementations§
source§impl GradientStopBuilder
impl GradientStopBuilder
sourcepub fn color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The color value at this point in the gradient.
sourcepub fn offset<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn offset<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The offset fraction for the color stop, indicating its position within the gradient.
sourcepub fn build(&self) -> Result<GradientStop, GradientStopBuilderError>
pub fn build(&self) -> Result<GradientStop, GradientStopBuilderError>
Trait Implementations§
source§impl Clone for GradientStopBuilder
impl Clone for GradientStopBuilder
source§fn clone(&self) -> GradientStopBuilder
fn clone(&self) -> GradientStopBuilder
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 GradientStopBuilder
impl Send for GradientStopBuilder
impl Sync for GradientStopBuilder
impl Unpin for GradientStopBuilder
impl UnwindSafe for GradientStopBuilder
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