Write down adjustments introduced by binary operators

This commit is contained in:
Lukas Wirth 2023-01-02 23:16:09 +01:00
parent 17cc78f169
commit f51111aacb
4 changed files with 84 additions and 19 deletions

View file

@ -382,6 +382,12 @@ pub mod ops {
type Output;
fn add(self, rhs: Rhs) -> Self::Output;
}
#[lang = "add_assign"]
#[const_trait]
pub trait AddAssign<Rhs = Self> {
fn add_assign(&mut self, rhs: Rhs);
}
// endregion:add
// region:generator