pub struct BorderPaintSpec {
pub widths: Edges,
pub color: Rgba,
}Expand description
Resolved border paint for a state override (:hover { border: ... },
hover-border: / focus-border:). Unlike the base border - which
accumulates from the border-width / border-color / border-style
longhands - a state border is authored via the shorthand only, so it
resolves to concrete widths + color at parse time.
Fields§
§widths: EdgesPer-side widths in px.
color: RgbaBorder color.
Trait Implementations§
Source§impl Clone for BorderPaintSpec
impl Clone for BorderPaintSpec
Source§fn clone(&self) -> BorderPaintSpec
fn clone(&self) -> BorderPaintSpec
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 moreSource§impl Debug for BorderPaintSpec
impl Debug for BorderPaintSpec
Source§impl<'de> Deserialize<'de> for BorderPaintSpec
impl<'de> Deserialize<'de> for BorderPaintSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BorderPaintSpec> for Border
impl From<BorderPaintSpec> for Border
Source§fn from(b: BorderPaintSpec) -> Self
fn from(b: BorderPaintSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BorderPaintSpec
impl PartialEq for BorderPaintSpec
Source§fn eq(&self, other: &BorderPaintSpec) -> bool
fn eq(&self, other: &BorderPaintSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BorderPaintSpec
impl Serialize for BorderPaintSpec
impl Copy for BorderPaintSpec
impl StructuralPartialEq for BorderPaintSpec
Auto Trait Implementations§
impl Freeze for BorderPaintSpec
impl RefUnwindSafe for BorderPaintSpec
impl Send for BorderPaintSpec
impl Sync for BorderPaintSpec
impl Unpin for BorderPaintSpec
impl UnsafeUnpin for BorderPaintSpec
impl UnwindSafe for BorderPaintSpec
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.