pub struct MarginRightStyleValue(pub AutoOr<LengthPercentage>);Expand description
Represents the style value for margin-right 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 MarginRightStyleValue
impl Clone for MarginRightStyleValue
Source§fn clone(&self) -> MarginRightStyleValue
fn clone(&self) -> MarginRightStyleValue
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 MarginRightStyleValue
impl Debug for MarginRightStyleValue
Source§impl Hash for MarginRightStyleValue
impl Hash for MarginRightStyleValue
Source§impl Ord for MarginRightStyleValue
impl Ord for MarginRightStyleValue
Source§fn cmp(&self, other: &MarginRightStyleValue) -> Ordering
fn cmp(&self, other: &MarginRightStyleValue) -> 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 MarginRightStyleValue
impl<'a> Parse<'a> for MarginRightStyleValue
Source§impl PartialEq for MarginRightStyleValue
impl PartialEq for MarginRightStyleValue
Source§impl PartialOrd for MarginRightStyleValue
impl PartialOrd for MarginRightStyleValue
Source§impl<'a> Peek<'a> for MarginRightStyleValue
impl<'a> Peek<'a> for MarginRightStyleValue
Source§impl ToCursors for MarginRightStyleValue
impl ToCursors for MarginRightStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MarginRightStyleValue
impl StructuralPartialEq for MarginRightStyleValue
Auto Trait Implementations§
impl Freeze for MarginRightStyleValue
impl RefUnwindSafe for MarginRightStyleValue
impl Send for MarginRightStyleValue
impl Sync for MarginRightStyleValue
impl Unpin for MarginRightStyleValue
impl UnwindSafe for MarginRightStyleValue
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