linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
727 stars 71 forks source link

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

Closed waywardmonkeys closed 8 months ago

waywardmonkeys commented 8 months ago

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

waywardmonkeys commented 8 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.