embedded-graphics / embedded-graphics/embedded-graphics

Polyline is unnecessarily restricting input type to slice of Points

Open
#680 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.