pub struct LayoutMargin {
pub top: PixelValueWithAuto,
pub bottom: PixelValueWithAuto,
pub left: PixelValueWithAuto,
pub right: PixelValueWithAuto,
}Expand description
Result of parsing the CSS margin shorthand property (1–4 values).
Fields§
§top: PixelValueWithAuto§bottom: PixelValueWithAuto§left: PixelValueWithAuto§right: PixelValueWithAutoTrait Implementations§
Source§impl Clone for LayoutMargin
impl Clone for LayoutMargin
Source§fn clone(&self) -> LayoutMargin
fn clone(&self) -> LayoutMargin
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 LayoutMargin
impl Debug for LayoutMargin
Source§impl Hash for LayoutMargin
impl Hash for LayoutMargin
Source§impl Ord for LayoutMargin
impl Ord for LayoutMargin
Source§fn cmp(&self, other: &LayoutMargin) -> Ordering
fn cmp(&self, other: &LayoutMargin) -> Ordering
1.21.0 (const: unstable) · 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 LayoutMargin
impl PartialEq for LayoutMargin
Source§fn eq(&self, other: &LayoutMargin) -> bool
fn eq(&self, other: &LayoutMargin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LayoutMargin
impl PartialOrd for LayoutMargin
impl Copy for LayoutMargin
impl Eq for LayoutMargin
impl StructuralPartialEq for LayoutMargin
Auto Trait Implementations§
impl Freeze for LayoutMargin
impl RefUnwindSafe for LayoutMargin
impl Send for LayoutMargin
impl Sync for LayoutMargin
impl Unpin for LayoutMargin
impl UnsafeUnpin for LayoutMargin
impl UnwindSafe for LayoutMargin
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