pub enum TypeOrUnit {
Show 29 variants
string,
color,
url,
integer,
number,
length,
em,
ex,
px,
rem,
vw,
vh,
vmin,
vmax,
mm,
cm,
in_,
pt,
pc,
angle,
deg,
rad,
time,
s,
ms,
frequency,
Hz,
kHz,
percentage,
}
Variants§
string
color
url
integer
number
length
em
ex
px
rem
vw
vh
vmin
vmax
mm
cm
in_
pt
pc
angle
deg
rad
time
s
ms
frequency
Hz
kHz
percentage
Implementations§
Source§impl TypeOrUnit
impl TypeOrUnit
Trait Implementations§
Source§impl Clone for TypeOrUnit
impl Clone for TypeOrUnit
Source§fn clone(&self) -> TypeOrUnit
fn clone(&self) -> TypeOrUnit
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 TypeOrUnit
impl Debug for TypeOrUnit
Source§impl Default for TypeOrUnit
impl Default for TypeOrUnit
Source§impl Hash for TypeOrUnit
impl Hash for TypeOrUnit
Source§impl Ord for TypeOrUnit
impl Ord for TypeOrUnit
Source§fn cmp(&self, other: &TypeOrUnit) -> Ordering
fn cmp(&self, other: &TypeOrUnit) -> 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 PartialEq for TypeOrUnit
impl PartialEq for TypeOrUnit
Source§impl PartialOrd for TypeOrUnit
impl PartialOrd for TypeOrUnit
Source§impl ToCss for TypeOrUnit
impl ToCss for TypeOrUnit
impl Copy for TypeOrUnit
impl Eq for TypeOrUnit
impl StructuralPartialEq for TypeOrUnit
Auto Trait Implementations§
impl Freeze for TypeOrUnit
impl RefUnwindSafe for TypeOrUnit
impl Send for TypeOrUnit
impl Sync for TypeOrUnit
impl Unpin for TypeOrUnit
impl UnwindSafe for TypeOrUnit
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