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