pub enum CssType {
Show 15 variants
Shadow,
AbsoluteSize,
RelativeSize,
Url,
LineWidth,
LineStyle,
Color,
Length,
Number,
Percentage,
Time,
Position,
Angle,
Image,
FontFamilyName,
}Expand description
The type of an arbitrary CSS value.
This enum is used when matching a class to an [Arbitrary] plugin when it needs to be
disambiguated from other plugins sharing the same namespace.
Variants§
Shadow
Match a shadow CSS property value.
AbsoluteSize
Match an absolute size CSS property value.
RelativeSize
Match a relative size CSS property value.
Url
Match an url CSS property value.
LineWidth
Match a line width CSS property value.
LineStyle
Match a line style CSS property value.
Color
Match a <color> CSS property value.
Length
Match a <length> CSS property value.
Number
Match a <number> CSS property value.
Percentage
Match a <percentage> CSS property value.
Time
Match a <time> CSS property value.
Position
Match a <position> CSS property value.
Angle
Match an <angle> CSS property value.
Image
Match an <image> CSS property value.
FontFamilyName
Match a font family name CSS property value.
Trait Implementations§
impl Copy for CssType
Source§impl<'de> Deserialize<'de> for CssType
impl<'de> Deserialize<'de> for CssType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CssType
Source§impl Ord for CssType
impl Ord for CssType
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CssType
impl PartialOrd for CssType
impl StructuralPartialEq for CssType
Auto Trait Implementations§
impl Freeze for CssType
impl RefUnwindSafe for CssType
impl Send for CssType
impl Sync for CssType
impl Unpin for CssType
impl UnsafeUnpin for CssType
impl UnwindSafe for CssType
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