pub struct PaddingTopStyleValue(pub LengthPercentage);Expand description
Represents the style value for padding-top 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:
<length-percentage [0,∞]>Tuple Fields§
§0: LengthPercentageTrait Implementations§
Source§impl Clone for PaddingTopStyleValue
impl Clone for PaddingTopStyleValue
Source§fn clone(&self) -> PaddingTopStyleValue
fn clone(&self) -> PaddingTopStyleValue
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 PaddingTopStyleValue
impl Debug for PaddingTopStyleValue
Source§impl Hash for PaddingTopStyleValue
impl Hash for PaddingTopStyleValue
Source§impl Ord for PaddingTopStyleValue
impl Ord for PaddingTopStyleValue
Source§fn cmp(&self, other: &PaddingTopStyleValue) -> Ordering
fn cmp(&self, other: &PaddingTopStyleValue) -> 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 PaddingTopStyleValue
impl<'a> Parse<'a> for PaddingTopStyleValue
Source§impl PartialEq for PaddingTopStyleValue
impl PartialEq for PaddingTopStyleValue
Source§impl PartialOrd for PaddingTopStyleValue
impl PartialOrd for PaddingTopStyleValue
Source§impl<'a> Peek<'a> for PaddingTopStyleValue
impl<'a> Peek<'a> for PaddingTopStyleValue
Source§impl ToCursors for PaddingTopStyleValue
impl ToCursors for PaddingTopStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for PaddingTopStyleValue
impl StructuralPartialEq for PaddingTopStyleValue
Auto Trait Implementations§
impl Freeze for PaddingTopStyleValue
impl RefUnwindSafe for PaddingTopStyleValue
impl Send for PaddingTopStyleValue
impl Sync for PaddingTopStyleValue
impl Unpin for PaddingTopStyleValue
impl UnwindSafe for PaddingTopStyleValue
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