[][src]Trait polyhorn_style::IntoDimension

pub trait IntoDimension {
    fn px(self) -> Dimension;
fn pct(self) -> Dimension; }

This is a trait that is implemented by integer and float types to make it more ergonomic to work with literals (e.g. 5.px() = Dimension::pixels(5.0)).

Required methods

fn px(self) -> Dimension

fn pct(self) -> Dimension

Loading content...

Implementations on Foreign Types

impl IntoDimension for isize[src]

impl IntoDimension for f32[src]

Loading content...

Implementors

Loading content...