Skip to main content

DipToPx

Trait DipToPx 

Source
pub trait DipToPx {
    type AsPx;

    // Required method
    fn to_px(self, scale_factor: Factor) -> Self::AsPx;
}
Expand description

Conversion from Dip to Px units.

Required Associated Types§

Source

type AsPx

Self equivalent in Px units.

Required Methods§

Source

fn to_px(self, scale_factor: Factor) -> Self::AsPx

Multiply the Dip self by the scale.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DipToPx for Point2D<f32, Dip>

Source§

type AsPx = Point2D<f32, Px>

Source§

fn to_px(self, scale_factor: Factor) -> Self::AsPx

Implementors§