pub struct ShapeMarginStyleValue(pub LengthPercentage);Expand description
Represents the style value for shape-margin as defined in css-shapes-2.
The shape-outside CSS property, along with shape-margin and shape-image-threshold, sets the shape around which adjacent content will wrap.
The grammar is defined as:
<length-percentage [0,∞]>Tuple Fields§
§0: LengthPercentageTrait Implementations§
Source§impl Clone for ShapeMarginStyleValue
impl Clone for ShapeMarginStyleValue
Source§fn clone(&self) -> ShapeMarginStyleValue
fn clone(&self) -> ShapeMarginStyleValue
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 ShapeMarginStyleValue
impl Debug for ShapeMarginStyleValue
Source§impl Hash for ShapeMarginStyleValue
impl Hash for ShapeMarginStyleValue
Source§impl Ord for ShapeMarginStyleValue
impl Ord for ShapeMarginStyleValue
Source§fn cmp(&self, other: &ShapeMarginStyleValue) -> Ordering
fn cmp(&self, other: &ShapeMarginStyleValue) -> 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 ShapeMarginStyleValue
impl<'a> Parse<'a> for ShapeMarginStyleValue
Source§impl PartialEq for ShapeMarginStyleValue
impl PartialEq for ShapeMarginStyleValue
Source§impl PartialOrd for ShapeMarginStyleValue
impl PartialOrd for ShapeMarginStyleValue
Source§impl<'a> Peek<'a> for ShapeMarginStyleValue
impl<'a> Peek<'a> for ShapeMarginStyleValue
Source§impl ToCursors for ShapeMarginStyleValue
impl ToCursors for ShapeMarginStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ShapeMarginStyleValue
impl StructuralPartialEq for ShapeMarginStyleValue
Auto Trait Implementations§
impl Freeze for ShapeMarginStyleValue
impl RefUnwindSafe for ShapeMarginStyleValue
impl Send for ShapeMarginStyleValue
impl Sync for ShapeMarginStyleValue
impl Unpin for ShapeMarginStyleValue
impl UnwindSafe for ShapeMarginStyleValue
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