Enum ux::UnitType [−][src]
#[non_exhaustive] pub enum UnitType { Pixel, Em, Mm, Point, Cm, // some variants omitted }
The type of unit in which a value is expressed
This enumeration might be expanded at later date
Variants (Non-exhaustive)
Unit expressed in pixels (with subpixel precision)
Unit expressed in em
Unit expressed in millimeters
Unit expressed in points
Unit expressed in centimeters
Trait Implementations
impl Clone for UnitType
[src][+]
impl Copy for UnitType
[src]
impl Debug for UnitType
[src][+]
impl Display for UnitType
[src][+]
impl Eq for UnitType
[src]
impl<'a> FromValue<'a> for UnitType
[src][+]
impl<'a> FromValueOptional<'a> for UnitType
[src][+]
impl Hash for UnitType
[src][+]
impl Ord for UnitType
[src][+]
impl PartialEq<UnitType> for UnitType
[src][+]
impl PartialOrd<UnitType> for UnitType
[src][+]
impl SetValue for UnitType
[src][+]
impl StaticType for UnitType
[src][+]
impl StructuralEq for UnitType
[src]
impl StructuralPartialEq for UnitType
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnwindSafe for UnitType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src][+]
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,