pub struct MarginTopStyleValue(pub AutoOr<LengthPercentage>);Expand description
Represents the style value for margin-top as defined in css-box-4.
The margin CSS property sets space around an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.
The grammar is defined as:
<length-percentage> | autoTuple Fields§
§0: AutoOr<LengthPercentage>Trait Implementations§
Source§impl Clone for MarginTopStyleValue
impl Clone for MarginTopStyleValue
Source§fn clone(&self) -> MarginTopStyleValue
fn clone(&self) -> MarginTopStyleValue
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 MarginTopStyleValue
impl Debug for MarginTopStyleValue
Source§impl Hash for MarginTopStyleValue
impl Hash for MarginTopStyleValue
Source§impl Ord for MarginTopStyleValue
impl Ord for MarginTopStyleValue
Source§fn cmp(&self, other: &MarginTopStyleValue) -> Ordering
fn cmp(&self, other: &MarginTopStyleValue) -> 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<'a> Parse<'a> for MarginTopStyleValue
impl<'a> Parse<'a> for MarginTopStyleValue
Source§impl PartialEq for MarginTopStyleValue
impl PartialEq for MarginTopStyleValue
Source§impl PartialOrd for MarginTopStyleValue
impl PartialOrd for MarginTopStyleValue
Source§impl<'a> Peek<'a> for MarginTopStyleValue
impl<'a> Peek<'a> for MarginTopStyleValue
Source§impl ToCursors for MarginTopStyleValue
impl ToCursors for MarginTopStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MarginTopStyleValue
impl StructuralPartialEq for MarginTopStyleValue
Auto Trait Implementations§
impl Freeze for MarginTopStyleValue
impl RefUnwindSafe for MarginTopStyleValue
impl Send for MarginTopStyleValue
impl Sync for MarginTopStyleValue
impl Unpin for MarginTopStyleValue
impl UnwindSafe for MarginTopStyleValue
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