pub enum ShorthandId {
Margin,
Padding,
Gap,
Border,
BorderTop,
BorderRight,
BorderBottom,
BorderLeft,
BorderWidth,
BorderStyle,
BorderColor,
BorderRadius,
}Expand description
A shorthand property: a single declaration that sets several longhands.
Variants§
Margin
margin: one to four values, top, right, bottom, left.
Padding
padding: one to four values.
Gap
gap: row gap, then an optional column gap.
Border
border: any of a width, a style and a colour, in any order, for all
four sides.
BorderTop
border-top: like border for one side.
BorderRight
BorderBottom
BorderLeft
BorderWidth
border-width: one to four values.
BorderStyle
border-style: one to four values.
BorderColor
border-color: one to four values.
BorderRadius
border-radius: one to four values, top-left, top-right,
bottom-right, bottom-left. Elliptical corners (a / b) are not
supported.
Implementations§
Trait Implementations§
Source§impl Clone for ShorthandId
impl Clone for ShorthandId
Source§fn clone(&self) -> ShorthandId
fn clone(&self) -> ShorthandId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShorthandId
Source§impl Debug for ShorthandId
impl Debug for ShorthandId
impl Eq for ShorthandId
Source§impl Hash for ShorthandId
impl Hash for ShorthandId
Source§impl PartialEq for ShorthandId
impl PartialEq for ShorthandId
Source§fn eq(&self, other: &ShorthandId) -> bool
fn eq(&self, other: &ShorthandId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShorthandId
Auto Trait Implementations§
impl Freeze for ShorthandId
impl RefUnwindSafe for ShorthandId
impl Send for ShorthandId
impl Sync for ShorthandId
impl Unpin for ShorthandId
impl UnsafeUnpin for ShorthandId
impl UnwindSafe for ShorthandId
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