pub struct BorderStyleValue {
pub line_width: Option<LineWidth>,
pub line_style: Option<LineStyle>,
pub color: Option<Color>,
}Expand description
Represents the style value for border as defined in css-borders-4.
The border CSS property sets the color, style, and width of the line around an element.
The grammar is defined as:
<line-width> || <line-style> || <color>Fields§
§line_width: Option<LineWidth>§line_style: Option<LineStyle>§color: Option<Color>Trait Implementations§
Source§impl Clone for BorderStyleValue
impl Clone for BorderStyleValue
Source§fn clone(&self) -> BorderStyleValue
fn clone(&self) -> BorderStyleValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BorderStyleValue
impl Debug for BorderStyleValue
Source§impl Hash for BorderStyleValue
impl Hash for BorderStyleValue
Source§impl Ord for BorderStyleValue
impl Ord for BorderStyleValue
Source§fn cmp(&self, other: &BorderStyleValue) -> Ordering
fn cmp(&self, other: &BorderStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for BorderStyleValue
impl<'a> Parse<'a> for BorderStyleValue
Source§impl PartialEq for BorderStyleValue
impl PartialEq for BorderStyleValue
Source§impl PartialOrd for BorderStyleValue
impl PartialOrd for BorderStyleValue
Source§impl<'a> Peek<'a> for BorderStyleValue
impl<'a> Peek<'a> for BorderStyleValue
Source§impl ToCursors for BorderStyleValue
impl ToCursors for BorderStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for BorderStyleValue
impl StructuralPartialEq for BorderStyleValue
Auto Trait Implementations§
impl Freeze for BorderStyleValue
impl RefUnwindSafe for BorderStyleValue
impl Send for BorderStyleValue
impl Sync for BorderStyleValue
impl Unpin for BorderStyleValue
impl UnwindSafe for BorderStyleValue
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