Now inline default 'ne' methods
This commit is contained in:
parent
babe20f018
commit
ed2217d7b6
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ and `Eq` to overload the `==` and `!=` operators.
|
|||
#[lang="eq"]
|
||||
pub trait Eq {
|
||||
fn eq(&self, other: &Self) -> bool;
|
||||
|
||||
#[inline]
|
||||
fn ne(&self, other: &Self) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue