pub trait ElementSized {
// Required methods
fn width(&self) -> u32;
fn height(&self) -> u32;
fn set_size(&mut self, width: u32, height: u32);
}Expand description
Trait for sized elements (width, height)
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".