global: snapshot

This commit is contained in:
nym21
2025-08-29 22:49:26 +02:00
parent 30affc884b
commit e106d30852
28 changed files with 1120 additions and 827 deletions

View File

@@ -36,6 +36,12 @@ impl From<f64> for StoredF64 {
}
}
impl From<f32> for StoredF64 {
fn from(value: f32) -> Self {
Self(value as f64)
}
}
impl From<usize> for StoredF64 {
fn from(value: usize) -> Self {
Self(value as f64)
@@ -88,6 +94,12 @@ impl From<StoredF64> for f64 {
}
}
impl From<StoredF64> for f32 {
fn from(value: StoredF64) -> Self {
value.0 as f32
}
}
impl From<Dollars> for StoredF64 {
fn from(value: Dollars) -> Self {
Self(f64::from(value))