Skip to content

Commit 3c8ef25

Browse files
committed
chore: format
1 parent 8d6d23b commit 3c8ef25

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

stochastic-rs-core/src/python.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ impl IntoF32 for f64 {
2222
self as f32
2323
}
2424
}
25+
2526
impl IntoF64 for f64 {
2627
type Target = f64;
2728
fn into_f64(self) -> f64 {
@@ -35,6 +36,7 @@ impl IntoF32 for Option<f64> {
3536
self.map(|v| v as f32)
3637
}
3738
}
39+
3840
impl IntoF64 for Option<f64> {
3941
type Target = Option<f64>;
4042
fn into_f64(self) -> Option<f64> {
@@ -48,6 +50,7 @@ impl IntoF32 for usize {
4850
self
4951
}
5052
}
53+
5154
impl IntoF64 for usize {
5255
type Target = usize;
5356
fn into_f64(self) -> usize {
@@ -61,6 +64,7 @@ impl IntoF32 for Option<usize> {
6164
self
6265
}
6366
}
67+
6468
impl IntoF64 for Option<usize> {
6569
type Target = Option<usize>;
6670
fn into_f64(self) -> Option<usize> {
@@ -74,6 +78,7 @@ impl IntoF32 for Option<bool> {
7478
self
7579
}
7680
}
81+
7782
impl IntoF64 for Option<bool> {
7883
type Target = Option<bool>;
7984
fn into_f64(self) -> Option<bool> {
@@ -87,6 +92,7 @@ impl IntoF32 for Vec<f64> {
8792
Array1::from_vec(self).mapv(|v| v as f32)
8893
}
8994
}
95+
9096
impl IntoF64 for Vec<f64> {
9197
type Target = Array1<f64>;
9298
fn into_f64(self) -> Array1<f64> {
@@ -100,6 +106,7 @@ impl IntoF32 for Option<Vec<f64>> {
100106
self.map(|v| Array1::from_vec(v).mapv(|x| x as f32))
101107
}
102108
}
109+
103110
impl IntoF64 for Option<Vec<f64>> {
104111
type Target = Option<Array1<f64>>;
105112
fn into_f64(self) -> Option<Array1<f64>> {
@@ -113,6 +120,7 @@ impl IntoF32 for u32 {
113120
self
114121
}
115122
}
123+
116124
impl IntoF64 for u32 {
117125
type Target = u32;
118126
fn into_f64(self) -> u32 {
@@ -126,6 +134,7 @@ impl IntoF32 for String {
126134
self
127135
}
128136
}
137+
129138
impl IntoF64 for String {
130139
type Target = String;
131140
fn into_f64(self) -> String {

0 commit comments

Comments
 (0)