1#[derive(PartialEq, Eq, Clone, Copy, Debug)] 2pub struct Point { 3 pub x: u16, 4 pub y: u16, 5} 6 7#[derive(Debug)] 8pub struct Rect { 9 pub p1: Point, 10 pub p2: Point, 11}