aboutsummaryrefslogtreecommitdiff
path: root/rand/src/distributions/weighted.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-20 06:42:39 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-20 06:42:39 -0800
commit01fb9e579de1c019ed718e04f9b592f2687f7040 (patch)
tree0e8f87cb21e69aed505345b3ff92bc8822ac2155 /rand/src/distributions/weighted.rs
parentac2bfc709f57094bac54b299f0a307b765e9b674 (diff)
downloadnitrocli-01fb9e579de1c019ed718e04f9b592f2687f7040.tar.gz
nitrocli-01fb9e579de1c019ed718e04f9b592f2687f7040.tar.bz2
Return Cow object from SecretEntry methods
We do not know what kind of data future implementers of the SecretEntry trait may want to return. For all we know these could just be static strings, in which case the forced conversion into a String by virtue of the return type is wasteful. To be more flexible in the future while gaining some consistency, this change makes all those trait's methods return a Cow object instead.
Diffstat (limited to 'rand/src/distributions/weighted.rs')
0 files changed, 0 insertions, 0 deletions