You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am upgrading my forgotten crate to embedded-graphics 0.7.1, I'd like to get rid of my alternative polyline impl (called DrawableCurve), but here comes the problem:
This is a good idea, and should be possible (with a sizeable refactor). However, Polyline uses a lot of iteration over points internally, so I think the passed Iterator would also need a + Clone bound. Is this a dealbreaker for your specific case?
I am upgrading my forgotten crate to
embedded-graphics 0.7.1
, I'd like to get rid of my alternative polyline impl (calledDrawableCurve
), but here comes the problem:Point
sso I'd need to unnecessarily collect my conversion iterator just to create a polyline. If it would hold an iterator of points, it would be more flexible for instantiating Polylines from processed data.
See my (limited) implementation: https://gitlab.com/mchodzikiewicz/embedded-plots/-/blob/df0b244604b67ab88e44bfcd2bc946a53ecc4ed9/src/curve.rs#L121
The text was updated successfully, but these errors were encountered: