There was an error while loading. Please reload this page.
1 parent 14eba3d commit 9137ad2Copy full SHA for 9137ad2
1 file changed
src/random.rs
@@ -249,9 +249,9 @@ pub enum NumpyBitGenerator {
249
SFC64,
250
}
251
252
-impl Into<&'static str> for NumpyBitGenerator {
253
- fn into(self) -> &'static str {
254
- match self {
+impl From<NumpyBitGenerator> for &'static str {
+ fn from(value: NumpyBitGenerator) -> &'static str {
+ match value {
255
NumpyBitGenerator::MT19937 => "MT19937",
256
NumpyBitGenerator::PCG64 => "PCG64",
257
NumpyBitGenerator::PCG64DXSM => "PCG64dxsm",
0 commit comments