pub struct StyleBorderWidths {
pub top: Option<CssPropertyValue<LayoutBorderTopWidth>>,
pub right: Option<CssPropertyValue<LayoutBorderRightWidth>>,
pub bottom: Option<CssPropertyValue<LayoutBorderBottomWidth>>,
pub left: Option<CssPropertyValue<LayoutBorderLeftWidth>>,
}Expand description
Border widths for all four sides.
Each field is optional to allow partial border specifications.
Used in DisplayListItem::Border to specify per-side border widths.
Fields§
§top: Option<CssPropertyValue<LayoutBorderTopWidth>>Top border width (CSS border-top-width)
right: Option<CssPropertyValue<LayoutBorderRightWidth>>Right border width (CSS border-right-width)
bottom: Option<CssPropertyValue<LayoutBorderBottomWidth>>Bottom border width (CSS border-bottom-width)
left: Option<CssPropertyValue<LayoutBorderLeftWidth>>Left border width (CSS border-left-width)
Trait Implementations§
Source§impl Clone for StyleBorderWidths
impl Clone for StyleBorderWidths
Source§fn clone(&self) -> StyleBorderWidths
fn clone(&self) -> StyleBorderWidths
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 StyleBorderWidths
impl Debug for StyleBorderWidths
impl Copy for StyleBorderWidths
Auto Trait Implementations§
impl Freeze for StyleBorderWidths
impl RefUnwindSafe for StyleBorderWidths
impl Send for StyleBorderWidths
impl Sync for StyleBorderWidths
impl Unpin for StyleBorderWidths
impl UnwindSafe for StyleBorderWidths
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