mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Changen Div to Quot and Mod to Rem.
This commit is contained in:
parent
cdef71dbab
commit
5e4d59423b
1 changed files with 4 additions and 4 deletions
|
@ -22,12 +22,12 @@ impl Mul<Au,Au> for Au {
|
|||
fn mul(&self, other: &Au) -> Au { Au(**self * **other) }
|
||||
}
|
||||
|
||||
impl Div<Au,Au> for Au {
|
||||
fn div(&self, other: &Au) -> Au { Au(**self / **other) }
|
||||
impl Quot<Au,Au> for Au {
|
||||
fn quot(&self, other: &Au) -> Au { Au(**self / **other) }
|
||||
}
|
||||
|
||||
impl Modulo<Au,Au> for Au {
|
||||
fn modulo(&self, other: &Au) -> Au { Au(**self % **other) }
|
||||
impl Rem<Au,Au> for Au {
|
||||
fn rem(&self, other: &Au) -> Au { Au(**self % **other) }
|
||||
}
|
||||
|
||||
impl Neg<Au> for Au {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue