pub struct SeparatorPropsBuilder { /* private fields */ }Expand description
Typestate builder for SeparatorProps, created by SeparatorProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl SeparatorPropsBuilder
impl SeparatorPropsBuilder
Sourcepub fn orientation(self, orientation: SeparatorOrientation) -> Self
pub fn orientation(self, orientation: SeparatorOrientation) -> Self
The direction the rule runs in.
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Extra attributes for the <hr> element.
Sourcepub fn build(self) -> SeparatorProps
pub fn build(self) -> SeparatorProps
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 SeparatorPropsBuilder
impl RefUnwindSafe for SeparatorPropsBuilder
impl Send for SeparatorPropsBuilder
impl Sync for SeparatorPropsBuilder
impl Unpin for SeparatorPropsBuilder
impl UnsafeUnpin for SeparatorPropsBuilder
impl UnwindSafe for SeparatorPropsBuilder
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