servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
462 stars 102 forks source link

(breaking change) Take self by value for small structs #455

Closed nical closed 4 years ago

nical commented 4 years ago

See #454

Points, vectors, sizes, length and scale which are passed by value are now consistently taking self by value as well.

nical commented 4 years ago

True, though we know that the vast majority of uses are with f32, i32 and f64 and that there isn't much of a use case for things larger than f64.

@bors-servo r=kvark

bors-servo commented 4 years ago

:pushpin: Commit f0d8e37 has been approved by kvark

bors-servo commented 4 years ago

:hourglass: Testing commit f0d8e37876f093af0bc51ab94bcc45defd9c8c78 with merge 1eeaf085c7ebddd9f8cf0ecddf54eed9a4c91a8e...

bors-servo commented 4 years ago

:sunny: Test successful - checks-travis Approved by: kvark Pushing 1eeaf085c7ebddd9f8cf0ecddf54eed9a4c91a8e to master...