pub struct DonutChartPropsBuilder<'__a, __donut = donut, __base = base, __sel = sel, __animate = animate, __click = click> { /* private fields */ }Expand description
Typestate builder for DonutChartProps, created by DonutChartProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __donut, __base, __sel, __animate, __click> DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
Sourcepub fn donut(
self,
donut: &'__a Donut,
) -> DonutChartPropsBuilder<'__a, Set, __base, __sel, __animate, __click>
pub fn donut( self, donut: &'__a Donut, ) -> DonutChartPropsBuilder<'__a, Set, __base, __sel, __animate, __click>
Sets the donut property.
Sourcepub fn base(
self,
base: &'__a str,
) -> DonutChartPropsBuilder<'__a, __donut, Set, __sel, __animate, __click>
pub fn base( self, base: &'__a str, ) -> DonutChartPropsBuilder<'__a, __donut, Set, __sel, __animate, __click>
Sets the base property.
Sourcepub fn sel(
self,
sel: &'__a Selection,
) -> DonutChartPropsBuilder<'__a, __donut, __base, Set, __animate, __click>
pub fn sel( self, sel: &'__a Selection, ) -> DonutChartPropsBuilder<'__a, __donut, __base, Set, __animate, __click>
Sets the sel property.
Sourcepub fn animate(
self,
animate: bool,
) -> DonutChartPropsBuilder<'__a, __donut, __base, __sel, Set, __click>
pub fn animate( self, animate: bool, ) -> DonutChartPropsBuilder<'__a, __donut, __base, __sel, Set, __click>
Sets the animate property.
Sourcepub fn click(
self,
click: Option<&'__a Signal<String>>,
) -> DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, Set>
pub fn click( self, click: Option<&'__a Signal<String>>, ) -> DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, Set>
Sets the click property.
Sourcepub fn build(self) -> DonutChartProps<'__a>
pub fn build(self) -> DonutChartProps<'__a>
Builds the props struct from the set properties.
Only available once every required property has been set.
#[default] properties that were not set are filled with
Default::default(), or the #[default(expr)] expression.
Auto Trait Implementations§
impl<'__a, __donut, __base, __sel, __animate, __click> Freeze for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> RefUnwindSafe for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> Send for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> Sync for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> Unpin for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> UnsafeUnpin for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
impl<'__a, __donut, __base, __sel, __animate, __click> UnwindSafe for DonutChartPropsBuilder<'__a, __donut, __base, __sel, __animate, __click>
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