pub struct BorderSide {
pub color: Color,
pub width: f32,
}Expand description
What a decoration is made of — its shape, its sides, its border’s two forms, its
shadows’ blur — and the shapes a border can take.
One edge of a shape: what colour it is drawn in and how thick it is
(border_side.dart).
Fields§
§color: ColorThe edge’s colour.
width: f32The edge’s width, in logical pixels.
Implementations§
Source§impl BorderSide
impl BorderSide
Sourcepub const NONE: BorderSide
pub const NONE: BorderSide
No edge at all — the reference’s BorderStyle.none, said as a width rather than
as a third state, since a zero-width edge and an absent one paint identically and
nothing here has to tell them apart.
Sourcepub const fn new(color: Color, width: f32) -> BorderSide
pub const fn new(color: Color, width: f32) -> BorderSide
An edge of the given colour and width.
Trait Implementations§
Source§impl Clone for BorderSide
impl Clone for BorderSide
Source§fn clone(&self) -> BorderSide
fn clone(&self) -> BorderSide
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 BorderSide
Source§impl Debug for BorderSide
impl Debug for BorderSide
Source§impl Default for BorderSide
impl Default for BorderSide
Source§fn default() -> BorderSide
fn default() -> BorderSide
Returns the “default value” for a type. Read more
Source§impl PartialEq for BorderSide
impl PartialEq for BorderSide
impl StructuralPartialEq for BorderSide
Auto Trait Implementations§
impl Freeze for BorderSide
impl RefUnwindSafe for BorderSide
impl Send for BorderSide
impl Sync for BorderSide
impl Unpin for BorderSide
impl UnsafeUnpin for BorderSide
impl UnwindSafe for BorderSide
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