span direction (sign) now works

This commit is contained in:
iris committed 2025-08-11 02:41:14 -04:00
1 parent fa930180c1
commit 23a5ccd05e
4 files changed
+34 -6

No files matched your search

+9
View File
@@ -40,6 +40,15 @@ macro_rules! impl_op {
}
}
}
impl const $op<$T> for f32 {
type Output = $T;
fn $fn(self, rhs: $T) -> Self::Output {
$T {
$($field: self.$fn(rhs.$field),)*
}
}
}
impl $opa<f32> for $T {
fn $fna(&mut self, rhs: f32) {
$(self.$field.$fna(rhs);)*