linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
716 stars 69 forks source link

Move `Self: Sized` bound from `Shape` to methods. #340

Closed waywardmonkeys closed 7 months ago

waywardmonkeys commented 7 months ago

The Shape trait overall doesn't need the Self: Sized bound only 2 methods do, so move the bound there.

waywardmonkeys commented 7 months ago

I'd found this when I was looking at why Shape isn't object-safe, which was causing me problems when looking at FFI for Vello. This alone won't solve that, but seemed like a change in a positive direction.