pub struct BorderBuilder { /* private fields */ }
Expand description
Used to build a border, specifying additional details.
Implementations§
Source§impl BorderBuilder
impl BorderBuilder
Sourcepub fn new() -> BorderBuilder
pub fn new() -> BorderBuilder
Creates a new border builder with default values.
Sourcepub fn brush<B>(self, brush: B) -> BorderBuilder
pub fn brush<B>(self, brush: B) -> BorderBuilder
Inserts a border brush.
Sourcepub fn thickness(self, thickness: Thickness) -> BorderBuilder
pub fn thickness(self, thickness: Thickness) -> BorderBuilder
Inserts a border thickness.
Sourcepub fn radius(self, radius: f64) -> BorderBuilder
pub fn radius(self, radius: f64) -> BorderBuilder
Inserts a border radius.
Trait Implementations§
Source§impl Default for BorderBuilder
impl Default for BorderBuilder
Source§fn default() -> BorderBuilder
fn default() -> BorderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BorderBuilder
impl RefUnwindSafe for BorderBuilder
impl Send for BorderBuilder
impl Sync for BorderBuilder
impl Unpin for BorderBuilder
impl UnwindSafe for BorderBuilder
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