Now inline default 'ne' methods

This commit is contained in:
Eric Martin 2013-08-30 22:02:24 -04:00
parent babe20f018
commit ed2217d7b6

View File

@ -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) }
}