pub trait Scalable {
// Required methods
fn to_px(&self, scale: Scale) -> Self;
fn to_dp(&self, scale: Scale) -> Self;
}Expand description
The Scalable trait describes how coordinates should be translated
from display points into pixels and vice versa using a Scale.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.