pub struct Border {
pub widths: Edges,
pub color: Color,
pub side_colors: Option<[Color; 4]>,
}Expand description
Solid border paint record stored on Visuals::border. Supports
border-style: solid with per-side widths (including 0 = no
border on that side) and optional per-side colors.
Fields§
§widths: EdgesPer-side stroke widths in logical pixels (0 = that side absent).
color: ColorBorder color shared by all four sides (the uniform fast path).
side_colors: Option<[Color; 4]>Per-side color overrides [top, right, bottom, left] (CSS
border-top-color …). None = every side paints Self::color.
Implementations§
Trait Implementations§
impl Copy for Border
impl StructuralPartialEq for Border
Auto Trait Implementations§
impl Freeze for Border
impl RefUnwindSafe for Border
impl Send for Border
impl Sync for Border
impl Unpin for Border
impl UnsafeUnpin for Border
impl UnwindSafe for Border
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.