Implement From<f64> for Scalar

This commit is contained in:
Hanno Braun 2024-11-06 20:17:51 +01:00
parent 204362bdcc
commit ad5805825f

View File

@ -49,3 +49,9 @@ impl PartialOrd for Scalar {
Some(self.cmp(other))
}
}
impl From<f64> for Scalar {
fn from(value: f64) -> Self {
Self::new(value)
}
}