mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 06:47:34 +00:00
Now inline default 'ne' methods
This commit is contained in:
parent
babe20f018
commit
ed2217d7b6
@ -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…
Reference in New Issue
Block a user