pub struct StyleBorderStyles {
pub top: Option<CssPropertyValue<StyleBorderTopStyle>>,
pub right: Option<CssPropertyValue<StyleBorderRightStyle>>,
pub bottom: Option<CssPropertyValue<StyleBorderBottomStyle>>,
pub left: Option<CssPropertyValue<StyleBorderLeftStyle>>,
}Expand description
Border styles for all four sides.
Each field is optional to allow partial border specifications.
Used in DisplayListItem::Border to specify per-side border styles
(solid, dashed, dotted, none, etc.).
Fields§
§top: Option<CssPropertyValue<StyleBorderTopStyle>>Top border style (CSS border-top-style)
right: Option<CssPropertyValue<StyleBorderRightStyle>>Right border style (CSS border-right-style)
bottom: Option<CssPropertyValue<StyleBorderBottomStyle>>Bottom border style (CSS border-bottom-style)
left: Option<CssPropertyValue<StyleBorderLeftStyle>>Left border style (CSS border-left-style)
Trait Implementations§
Source§impl Clone for StyleBorderStyles
impl Clone for StyleBorderStyles
Source§fn clone(&self) -> StyleBorderStyles
fn clone(&self) -> StyleBorderStyles
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 StyleBorderStyles
impl Debug for StyleBorderStyles
impl Copy for StyleBorderStyles
Auto Trait Implementations§
impl Freeze for StyleBorderStyles
impl RefUnwindSafe for StyleBorderStyles
impl Send for StyleBorderStyles
impl Sync for StyleBorderStyles
impl Unpin for StyleBorderStyles
impl UnwindSafe for StyleBorderStyles
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more