pub struct StyleBorderWidths {
pub top: Option<CssPropertyValue<StyleBorderTopWidth>>,
pub right: Option<CssPropertyValue<StyleBorderRightWidth>>,
pub bottom: Option<CssPropertyValue<StyleBorderBottomWidth>>,
pub left: Option<CssPropertyValue<StyleBorderLeftWidth>>,
}
Fields§
§top: Option<CssPropertyValue<StyleBorderTopWidth>>
§right: Option<CssPropertyValue<StyleBorderRightWidth>>
§bottom: Option<CssPropertyValue<StyleBorderBottomWidth>>
§left: Option<CssPropertyValue<StyleBorderLeftWidth>>
Implementations§
Source§impl StyleBorderWidths
impl StyleBorderWidths
pub fn left_width(&self) -> f32
pub fn right_width(&self) -> f32
pub fn top_width(&self) -> f32
pub fn bottom_width(&self) -> f32
pub fn total_horizontal(&self) -> f32
pub fn total_vertical(&self) -> f32
Trait Implementations§
Source§impl Clone for StyleBorderWidths
impl Clone for StyleBorderWidths
Source§fn clone(&self) -> StyleBorderWidths
fn clone(&self) -> StyleBorderWidths
Returns a copy 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
Source§impl Hash for StyleBorderWidths
impl Hash for StyleBorderWidths
Source§impl Ord for StyleBorderWidths
impl Ord for StyleBorderWidths
Source§fn cmp(&self, other: &StyleBorderWidths) -> Ordering
fn cmp(&self, other: &StyleBorderWidths) -> 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 PartialEq for StyleBorderWidths
impl PartialEq for StyleBorderWidths
Source§impl PartialOrd for StyleBorderWidths
impl PartialOrd for StyleBorderWidths
impl Copy for StyleBorderWidths
impl Eq for StyleBorderWidths
impl StructuralPartialEq 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)