pub trait SizeDesc {
// Required method
fn in_pixels<T: HasDimension>(&self, parent: &T) -> i32;
}
Expand description
The trait that describes a size, it may be a relative size which the size is determined by the parent size, e.g., 10% of the parent width
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.