Why is plotters::prelude::Ranged
not implemented for u8
and u16
and other common primitives?
#684
Unanswered
Supermarcel10
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are there any technical reasons
plotters::prelude::Ranged
is not implemented forRange<T>
for primitives likeu8
oru16
?To me, this seems like an inconsistency in the charting library.
For example, the following code will not compile:
In this scenario, it would make sense to just define instead
0u32..128u32
, but this seems wasteful for some scenarios. Additionally, if any of the range ends is retrieved, a cast is necessary. As an example:Beta Was this translation helpful? Give feedback.
All reactions