pub struct SwitchPropsBuilder { /* private fields */ }Expand description
Typestate builder for SwitchProps, created by SwitchProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl SwitchPropsBuilder
impl SwitchPropsBuilder
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Sets the attrs property.
Sourcepub fn build(self) -> SwitchProps
pub fn build(self) -> SwitchProps
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 Freeze for SwitchPropsBuilder
impl RefUnwindSafe for SwitchPropsBuilder
impl Send for SwitchPropsBuilder
impl Sync for SwitchPropsBuilder
impl Unpin for SwitchPropsBuilder
impl UnsafeUnpin for SwitchPropsBuilder
impl UnwindSafe for SwitchPropsBuilder
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