embedded-graphics / embedded-graphics/embedded-graphics
Polyline is unnecessarily restricting input type to slice of Points
- Dominant language
- Rust
- Stars
- 1.3k
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
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:
* I am mapping abstract coordinates into Polyline
* Polyline is constructed using slice of `Point`s
so 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.