| 67 | } |
| 68 | |
| 69 | pub trait RectExt { |
| 70 | fn corners(&self) -> [Point; 4]; |
| 71 | |
| 72 | fn center_left(&self) -> Point; |
| 73 | fn center_right(&self) -> Point; |
| 74 | fn center_top(&self) -> Point; |
| 75 | fn center_bottom(&self) -> Point; |
| 76 | } |
| 77 | |
| 78 | impl RectExt for Rect { |
| 79 | fn corners(&self) -> [Point; 4] { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…