pub trait RectangleSize<T>{
// Required methods
fn width(&self) -> T;
fn height(&self) -> T;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<T> RectangleSize<T> for AxisAlignedRectangle<T>
A rectangle in 2D space with a width and height
impl<T> RectangleSize<T> for Rectangle<T>
A rectangle in 2D space with a width and height