pub trait RenderSize {
// Required methods
fn width(&self) -> u32;
fn height(&self) -> u32;
}Expand description
Trait for things that have a width and height in pixels
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".