Support for squaring of signed numbers.

This commit is contained in:
2019-01-08 09:48:11 -08:00
parent c5fa23c4bd
commit 3b0e2a84d9

View File

@@ -54,6 +54,12 @@ macro_rules! mul_impls
}
}
}
impl Square<$dbl> for $name {
fn square(&self) -> $dbl {
$dbl{ negative: false, value: self.value.square() }
}
}
}
}