refactor: down to 50 errors

considering whether to implement layout methods on Area
This commit is contained in:
🪞👃🪞 2024-09-07 13:20:56 +03:00
parent 06f8bd1116
commit 7bcd40b425
7 changed files with 77 additions and 86 deletions

View file

@ -17,7 +17,7 @@ impl<N: Number> Point<N> for [N;2] {
fn y (&self) -> N { self[1] }
}
pub trait Area<N: Number> {
pub trait Area<N: Number>: Copy {
fn x (&self) -> N;
fn y (&self) -> N;
fn w (&self) -> N;