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
Indeed it looks like API wise it would work as a replacement. However, I'm not sure if it makes sense semantically. The reason I was using the BoxData enum was to allow users of the BoxPlot representation to either move their data into the boxplot or simply have it referenced. It's not really intended to allow copy-on-write semantics.
It's still very undecided how the API for taking data from the user and putting it into some plotlib-internal data type should look. Currently BoxPlot is the only one that works like that and it was a bit of an experiment. We'll probably want consistent sematics across all the representations where possible.
Also, I haven't had much experience with Rust's managed pointers and COW types. Everything I've done so far has been simple ownership (with a ref references and Vecs) so it's possible I'm missing something.
plotlib/src/boxplot.rs
Lines 57 to 60 in c732707
vs
This struct exactly matches the
std::borrow::Cow
type. Unless extra functionality is required, the stdlib type should probably be used.The text was updated successfully, but these errors were encountered: