pub struct MarginBlockStyleValue(pub MarginTopStyleValue, pub Option<MarginTopStyleValue>);Expand description
Represents the style value for margin-block as defined in css-logical-1.
CSS logical properties control borders, size, margin, and padding with directions and dimensions relative to the writing mode. For example, in a left to right, top to bottom writing mode, block-end refers to the bottom. Also known as flow relative.
The grammar is defined as:
<'margin-top'>{1,2}Tuple Fields§
§0: MarginTopStyleValue§1: Option<MarginTopStyleValue>Trait Implementations§
Source§impl Clone for MarginBlockStyleValue
impl Clone for MarginBlockStyleValue
Source§fn clone(&self) -> MarginBlockStyleValue
fn clone(&self) -> MarginBlockStyleValue
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 MarginBlockStyleValue
impl Debug for MarginBlockStyleValue
Source§impl Hash for MarginBlockStyleValue
impl Hash for MarginBlockStyleValue
Source§impl Ord for MarginBlockStyleValue
impl Ord for MarginBlockStyleValue
Source§fn cmp(&self, other: &MarginBlockStyleValue) -> Ordering
fn cmp(&self, other: &MarginBlockStyleValue) -> 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 MarginBlockStyleValue
impl<'a> Parse<'a> for MarginBlockStyleValue
Source§impl PartialEq for MarginBlockStyleValue
impl PartialEq for MarginBlockStyleValue
Source§impl PartialOrd for MarginBlockStyleValue
impl PartialOrd for MarginBlockStyleValue
Source§impl<'a> Peek<'a> for MarginBlockStyleValue
impl<'a> Peek<'a> for MarginBlockStyleValue
Source§impl ToCursors for MarginBlockStyleValue
impl ToCursors for MarginBlockStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MarginBlockStyleValue
impl StructuralPartialEq for MarginBlockStyleValue
Auto Trait Implementations§
impl Freeze for MarginBlockStyleValue
impl RefUnwindSafe for MarginBlockStyleValue
impl Send for MarginBlockStyleValue
impl Sync for MarginBlockStyleValue
impl Unpin for MarginBlockStyleValue
impl UnwindSafe for MarginBlockStyleValue
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