pub enum DataType {
Show 15 variants
Length,
Number,
Percentage,
LengthPercentage,
Color,
Image,
Url,
Integer,
Angle,
Time,
Resolution,
TransformFunction,
CustomIdent,
TransformList,
String,
}
Variants§
Length
Any valid <length>
value
Number
<number>
values
Percentage
Any valid
LengthPercentage
Any valid <length>
or <percentage>
value, any valid <calc()>
expression combining
<length>
and <percentage>
components.
Color
Any valid <color>
value
Image
Any valid <image>
value
Url
Any valid <url>
value
Integer
Any valid <integer>
value
Angle
Any valid <angle>
value
Time
Any valid <time>
value
Resolution
Any valid <resolution>
value
TransformFunction
Any valid <transform-function>
value
CustomIdent
Any valid <custom-ident>
value
TransformList
A list of valid <transform-function>
values. Note that “
String
Any valid <string>
value
Implementations§
source§impl DataType
impl DataType
sourcepub fn unpremultiply(&self) -> Option<Component>
pub fn unpremultiply(&self) -> Option<Component>
Converts a component name from a pre-multiplied data type to its un-pre-multiplied equivalent.
https://drafts.css-houdini.org/css-properties-values-api-1/#pre-multiplied-data-type-name
sourcepub fn dependent_types(&self) -> DependentDataTypes
pub fn dependent_types(&self) -> DependentDataTypes
Returns which kinds of dependent data types this property might contain.
Trait Implementations§
source§impl MallocSizeOf for DataType
impl MallocSizeOf for DataType
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl Copy for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more