pub enum Unit {
Show 62 variants
Em,
Rem,
Ex,
Rex,
Cap,
Rcap,
Ch,
Rch,
Ic,
Ric,
Lh,
Rlh,
Vw,
Vh,
Vi,
Vb,
Vmin,
Vmax,
Svw,
Svh,
Svi,
Svb,
Svmin,
Svmax,
Lvw,
Lvh,
Lvi,
Lvb,
Lvmin,
Lvmax,
Dvw,
Dvh,
Dvi,
Dvb,
Dvmin,
Dvmax,
Cqw,
Cqh,
Cqi,
Cqb,
Cqmin,
Cqmax,
Px,
Cm,
Mm,
Q,
In,
Pt,
Pc,
Deg,
Grad,
Rad,
Turn,
S,
Ms,
Hz,
Khz,
Dppx,
X,
Dpi,
Dpcm,
Fr,
}Expand description
A unit, from the dimension tokens CSS knows.
Variants§
Em
Rem
Ex
Rex
Cap
Rcap
Ch
Rch
Ic
Ric
Lh
Rlh
Vw
Vh
Vi
Vb
Vmin
Vmax
Svw
Svh
Svi
Svb
Svmin
Svmax
Lvw
Lvh
Lvi
Lvb
Lvmin
Lvmax
Dvw
Dvh
Dvi
Dvb
Dvmin
Dvmax
Cqw
Cqh
Cqi
Cqb
Cqmin
Cqmax
Px
Cm
Mm
Q
In
Pt
Pc
Deg
Grad
Rad
Turn
S
Ms
Hz
Khz
Dppx
X
Dpi
Dpcm
Fr
Implementations§
Trait Implementations§
impl Copy for Unit
impl Eq for Unit
Source§impl Ord for Unit
impl Ord for Unit
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 Unit
impl PartialOrd for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Forget for Unit
impl Freeze for Unit
impl Move for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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