pub trait UnitExt {
// Required methods
fn dp(self) -> Dp;
fn px(self) -> Px;
fn sp(self) -> Sp;
}Expand description
Compose-style unit constructors: 16.0.dp(), 10.px(), 14.0.sp().
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".