mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
refactor: down to 50 errors
considering whether to implement layout methods on Area
This commit is contained in:
parent
06f8bd1116
commit
7bcd40b425
7 changed files with 77 additions and 86 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue