pub struct StyleBuilder { /* private fields */ }
Expand description
Builder pattern for constructing Style
instances.
Implementations§
Source§impl StyleBuilder
impl StyleBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new builder with Style::default
values.
Sourcepub fn border_color(self, color: Color) -> Self
pub fn border_color(self, color: Color) -> Self
Set the border color.
Sourcepub fn border_width(self, width: u8) -> Self
pub fn border_width(self, width: u8) -> Self
Set the border width in pixels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyleBuilder
impl RefUnwindSafe for StyleBuilder
impl Send for StyleBuilder
impl Sync for StyleBuilder
impl Unpin for StyleBuilder
impl UnwindSafe for StyleBuilder
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