pub trait LengthExt {
// Required methods
fn px(self) -> Length;
fn em(self) -> Length;
fn rem(self) -> Length;
fn pct(self) -> Length;
fn vw(self) -> Length;
fn vh(self) -> Length;
fn vmin(self) -> Length;
fn vmax(self) -> Length;
fn fr(self) -> Length;
}Expand description
16.px(), 1.5.em(), 50.pct(), 1.fr(), …
Required Methods§
fn px(self) -> Length
fn em(self) -> Length
fn rem(self) -> Length
fn pct(self) -> Length
fn vw(self) -> Length
fn vh(self) -> Length
fn vmin(self) -> Length
fn vmax(self) -> Length
fn fr(self) -> Length
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".