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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more