pub struct ThemeStylePropsBuilder<__index = index> { /* private fields */ }Expand description
Typestate builder for ThemeStyleProps, created by ThemeStyleProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<__index> ThemeStylePropsBuilder<__index>
impl<__index> ThemeStylePropsBuilder<__index>
Sourcepub fn index(self, index: usize) -> ThemeStylePropsBuilder<Set>
pub fn index(self, index: usize) -> ThemeStylePropsBuilder<Set>
Sets the index property.
Sourcepub fn build(self) -> ThemeStylePropswhere
__index: IsSet,
pub fn build(self) -> ThemeStylePropswhere
__index: IsSet,
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<__index> Freeze for ThemeStylePropsBuilder<__index>
impl<__index> RefUnwindSafe for ThemeStylePropsBuilder<__index>
impl<__index> Send for ThemeStylePropsBuilder<__index>
impl<__index> Sync for ThemeStylePropsBuilder<__index>
impl<__index> Unpin for ThemeStylePropsBuilder<__index>
impl<__index> UnsafeUnpin for ThemeStylePropsBuilder<__index>
impl<__index> UnwindSafe for ThemeStylePropsBuilder<__index>
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