diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-07 12:06:02 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-07 12:24:48 -0700 |
| commit | feb014eb3c3aa1ccaae1df407801dffa090499fd (patch) | |
| tree | 8ffeec6945de4843f9e0d150720596327530e00f /src/libcore/path.rs | |
| parent | ac1f84c153a171e641233e5d2d11404a0b520986 (diff) | |
| download | rust-feb014eb3c3aa1ccaae1df407801dffa090499fd.tar.gz rust-feb014eb3c3aa1ccaae1df407801dffa090499fd.zip | |
rustc: Add an "ne" method to the Eq trait, and implement it everywhere
Diffstat (limited to 'src/libcore/path.rs')
| -rw-r--r-- | src/libcore/path.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs index 2151fc599e6..a9dda62d950 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -69,6 +69,7 @@ impl PosixPath : Eq { return self.is_absolute == other.is_absolute && self.components == other.components; } + pure fn ne(&&other: PosixPath) -> bool { !self.eq(other) } } impl WindowsPath : Eq { @@ -78,6 +79,7 @@ impl WindowsPath : Eq { self.is_absolute == other.is_absolute && self.components == other.components; } + pure fn ne(&&other: WindowsPath) -> bool { !self.eq(other) } } // FIXME (#3227): when default methods in traits are working, de-duplicate |
