Enum i_slint_compiler::expression_tree::Unit  
source · pub enum Unit {
Show 15 variants
    None,
    Percent,
    Phx,
    Px,
    Cm,
    Mm,
    In,
    Pt,
    Rem,
    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
Rem
Logical pixels multiplied with the window’s default-font-size
S
Seconds
Ms
Milliseconds
Deg
Degree
Grad
Gradians
Turn
Turns
Rad
Radians
Implementations§
Trait Implementations§
source§impl Ord for Unit
 
impl Ord for Unit
source§impl PartialEq for Unit
 
impl PartialEq for Unit
source§impl PartialOrd for Unit
 
impl PartialOrd for Unit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for Unit
impl Eq for Unit
impl StructuralEq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin 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