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