parent
fd8e175c4e
commit
e333a57a19
1 changed files with 10 additions and 0 deletions
|
|
@ -119,6 +119,16 @@ macro_rules! wrapping_impl {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.3.0")]
|
||||
impl Div for Wrapping<$t> {
|
||||
type Output = Wrapping<$t>;
|
||||
|
||||
#[inline(always)]
|
||||
fn div(self, other: Wrapping<$t>) -> Wrapping<$t> {
|
||||
Wrapping(self.0 / other.0)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Not for Wrapping<$t> {
|
||||
type Output = Wrapping<$t>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue