autocommit 2022-04-05 18:28:42 CEST
This commit is contained in:
parent
1f05ea431e
commit
a3e9f21fc5
29 changed files with 568 additions and 225 deletions
|
|
@ -17,7 +17,7 @@ pub struct Rect {
|
|||
|
||||
type Container = SmallVec<[Rect; 1]>;
|
||||
|
||||
#[derive(Default, Clone)]
|
||||
#[derive(Clone)]
|
||||
pub struct Region {
|
||||
rects: Container,
|
||||
extents: Rect,
|
||||
|
|
@ -75,6 +75,7 @@ impl Rect {
|
|||
Some(Self { x1, y1, x2, y2 })
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn new_unchecked(x1: i32, y1: i32, x2: i32, y2: i32) -> Self {
|
||||
Self { x1, y1, x2, y2 }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue