feat: serialization/deserialization with Serde

This commit is contained in:
Volodymyr Orlov
2020-03-31 18:19:20 -07:00
parent 1257d2c19b
commit 8bb6013430
8 changed files with 281 additions and 28 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
use std::fmt::{Debug, Display};
use num_traits::{Float, FromPrimitive};
use rand::prelude::*;
pub trait FloatExt: Float + FromPrimitive {
pub trait FloatExt: Float + FromPrimitive + Debug + Display {
fn copysign(self, sign: Self) -> Self;