Enum sixtyfps_compilerlib::expression_tree::Unit
source · [−]pub enum Unit {
Show 14 variants
None,
Percent,
Phx,
Px,
Cm,
Mm,
In,
Pt,
S,
Ms,
Deg,
Grad,
Turn,
Rad,
}
Expand description
The units that can be used after numbers in the language
Variants
None
No unit was given
Percent
Phx
Physical pixels
Px
Logical pixels
Cm
Centimeters
Mm
Millimeters
In
inches
Pt
Points
S
Seconds
Ms
Milliseconds
Deg
Degree
Grad
Gradians
Turn
Turns
Rad
Radians
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Unit
impl UnwindSafe for Unit
Blanket Implementations
Mutably borrows from an owned value. Read more
Checks that type has a default value.