pub struct PaddingStyleValue(pub PaddingTopStyleValue, pub Option<PaddingTopStyleValue>, pub Option<PaddingTopStyleValue>, pub Option<PaddingTopStyleValue>);Expand description
Represents the style value for padding as defined in css-box-4.
The padding CSS property sets space between an element’s edge and its contents. It is a shorthand for padding-top, padding-right, padding-bottom, and padding-left.
The grammar is defined as:
<'padding-top'>{1,4}Tuple Fields§
§0: PaddingTopStyleValue§1: Option<PaddingTopStyleValue>§2: Option<PaddingTopStyleValue>§3: Option<PaddingTopStyleValue>Trait Implementations§
Source§impl Clone for PaddingStyleValue
impl Clone for PaddingStyleValue
Source§fn clone(&self) -> PaddingStyleValue
fn clone(&self) -> PaddingStyleValue
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 PaddingStyleValue
impl Debug for PaddingStyleValue
Source§impl Hash for PaddingStyleValue
impl Hash for PaddingStyleValue
Source§impl Ord for PaddingStyleValue
impl Ord for PaddingStyleValue
Source§fn cmp(&self, other: &PaddingStyleValue) -> Ordering
fn cmp(&self, other: &PaddingStyleValue) -> 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 PaddingStyleValue
impl<'a> Parse<'a> for PaddingStyleValue
Source§impl PartialEq for PaddingStyleValue
impl PartialEq for PaddingStyleValue
Source§impl PartialOrd for PaddingStyleValue
impl PartialOrd for PaddingStyleValue
Source§impl<'a> Peek<'a> for PaddingStyleValue
impl<'a> Peek<'a> for PaddingStyleValue
Source§impl ToCursors for PaddingStyleValue
impl ToCursors for PaddingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for PaddingStyleValue
impl StructuralPartialEq for PaddingStyleValue
Auto Trait Implementations§
impl Freeze for PaddingStyleValue
impl RefUnwindSafe for PaddingStyleValue
impl Send for PaddingStyleValue
impl Sync for PaddingStyleValue
impl Unpin for PaddingStyleValue
impl UnwindSafe for PaddingStyleValue
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