pub enum BorderWidths {
Uniform,
PerSide {
top: f32,
right: f32,
bottom: f32,
left: f32,
},
}Expand description
How thick a rect’s border is on each side.
Uniform is everything a Stroke on its own can say, and all a path or a line ever
means by width: one number, applied the whole way round. PerSide is the case a box has
and a path does not — a rule under a header, a divider down one edge — where a side of 0.0 is simply not
there. Which is why the four numbers live on the rect rather than on the stroke they share a colour with.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for BorderWidths
impl Clone for BorderWidths
Source§fn clone(&self) -> BorderWidths
fn clone(&self) -> BorderWidths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BorderWidths
Source§impl Debug for BorderWidths
impl Debug for BorderWidths
Source§impl Default for BorderWidths
impl Default for BorderWidths
Source§fn default() -> BorderWidths
fn default() -> BorderWidths
Returns the “default value” for a type. Read more
Source§impl PartialEq for BorderWidths
impl PartialEq for BorderWidths
impl StructuralPartialEq for BorderWidths
Auto Trait Implementations§
impl Freeze for BorderWidths
impl RefUnwindSafe for BorderWidths
impl Send for BorderWidths
impl Sync for BorderWidths
impl Unpin for BorderWidths
impl UnsafeUnpin for BorderWidths
impl UnwindSafe for BorderWidths
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