pub trait RectangleSize<T>{
// Required methods
fn width(&self) -> T;
fn height(&self) -> T;
}Required Methods§
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