1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug, Copy, Clone, PartialEq)] pub struct Size { pub width: f32, pub height: f32 } impl Size { pub fn new(width: f32, height: f32) -> Self { Size { width: width, height: height } } }