about summary refs log tree commit diff
path: root/src/libcore/slice.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-08-06 20:49:52 -0700
committerBrian Anderson <banderson@mozilla.com>2014-08-13 11:30:15 -0700
commit76d46af6d405ac29d2d508705eacdcffad63e4c1 (patch)
tree4240dae68a3a3837d36924bd0ca8014a75daab1f /src/libcore/slice.rs
parent12e851208ddd40ca3e1b56badf5eaa32986f55a8 (diff)
downloadrust-76d46af6d405ac29d2d508705eacdcffad63e4c1.tar.gz
rust-76d46af6d405ac29d2d508705eacdcffad63e4c1.zip
core: Rename ImmutableEqSlice to ImmutablePartialEqSlice
This is in the prelude and won't break much code.

[breaking-change]
Diffstat (limited to 'src/libcore/slice.rs')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index b914a26d94c..e0088c4761b 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -773,7 +773,7 @@ impl<'a,T> MutableSlice<'a, T> for &'a mut [T] {
 }
 
 /// Extension methods for vectors contain `PartialEq` elements.
-pub trait ImmutableEqSlice<T:PartialEq> {
+pub trait ImmutablePartialEqSlice<T:PartialEq> {
     /// Find the first index containing a matching value
     fn position_elem(&self, t: &T) -> Option<uint>;
 
@@ -790,7 +790,7 @@ pub trait ImmutableEqSlice<T:PartialEq> {
     fn ends_with(&self, needle: &[T]) -> bool;
 }
 
-impl<'a,T:PartialEq> ImmutableEqSlice<T> for &'a [T] {
+impl<'a,T:PartialEq> ImmutablePartialEqSlice<T> for &'a [T] {
     #[inline]
     fn position_elem(&self, x: &T) -> Option<uint> {
         self.iter().position(|y| *x == *y)