pub struct BorderTopStyleValue {
pub line_width: Option<LineWidth>,
pub line_style: Option<LineStyle>,
pub color: Option<Color>,
}Expand description
Represents the style value for border-top 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 BorderTopStyleValue
impl Clone for BorderTopStyleValue
Source§fn clone(&self) -> BorderTopStyleValue
fn clone(&self) -> BorderTopStyleValue
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 BorderTopStyleValue
impl Debug for BorderTopStyleValue
Source§impl Hash for BorderTopStyleValue
impl Hash for BorderTopStyleValue
Source§impl Ord for BorderTopStyleValue
impl Ord for BorderTopStyleValue
Source§fn cmp(&self, other: &BorderTopStyleValue) -> Ordering
fn cmp(&self, other: &BorderTopStyleValue) -> 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 BorderTopStyleValue
impl<'a> Parse<'a> for BorderTopStyleValue
Source§impl PartialEq for BorderTopStyleValue
impl PartialEq for BorderTopStyleValue
Source§impl PartialOrd for BorderTopStyleValue
impl PartialOrd for BorderTopStyleValue
Source§impl<'a> Peek<'a> for BorderTopStyleValue
impl<'a> Peek<'a> for BorderTopStyleValue
Source§impl ToCursors for BorderTopStyleValue
impl ToCursors for BorderTopStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for BorderTopStyleValue
impl StructuralPartialEq for BorderTopStyleValue
Auto Trait Implementations§
impl Freeze for BorderTopStyleValue
impl RefUnwindSafe for BorderTopStyleValue
impl Send for BorderTopStyleValue
impl Sync for BorderTopStyleValue
impl Unpin for BorderTopStyleValue
impl UnwindSafe for BorderTopStyleValue
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