Skip to main content

Scalable

Trait Scalable 

Source
pub trait Scalable: Sealed + Sized {
    // Required method
    fn scaled(self, factor: f32) -> Self;
}
Expand description

Values that a ScaleFactor can scale between logical and physical pixels. Sealed.

Required Methods§

Source

fn scaled(self, factor: f32) -> Self

The value multiplied by factor.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Scalable for f32

Source§

fn scaled(self, factor: f32) -> Self

Implementors§