From 76d46af6d405ac29d2d508705eacdcffad63e4c1 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 6 Aug 2014 20:49:52 -0700 Subject: core: Rename ImmutableEqSlice to ImmutablePartialEqSlice This is in the prelude and won't break much code. [breaking-change] --- src/libcore/slice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore/slice.rs') 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 { +pub trait ImmutablePartialEqSlice { /// Find the first index containing a matching value fn position_elem(&self, t: &T) -> Option; @@ -790,7 +790,7 @@ pub trait ImmutableEqSlice { fn ends_with(&self, needle: &[T]) -> bool; } -impl<'a,T:PartialEq> ImmutableEqSlice for &'a [T] { +impl<'a,T:PartialEq> ImmutablePartialEqSlice for &'a [T] { #[inline] fn position_elem(&self, x: &T) -> Option { self.iter().position(|y| *x == *y) -- cgit 1.4.1-3-g733a5