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 tried a little bit, and faced an issue already. I need to add Serialize and Deserialize to the impl-block of WeightedIndex, but then this is not possible unless I include serde as a dependency.
Do you know how I can make a gated (with maybe cfg?) that enables me to add constraints if a feature is selected?
Common issues
Problem:
WeightedIndex<T>
is not serializeable.Quick solution: Skipping it, but even using
rand = {version = "0.7.3", features = ["serde1"]}
didn't amend the issue.
Details: I am curious as to whether it is possible to make this a
Serialize/Deserialize
pairing.If so, would be happy to provide a PR.
The text was updated successfully, but these errors were encountered: