@@ -798,8 +798,8 @@ impl<T> Container for ~[T] {
798
798
}
799
799
}
800
800
801
- /// Extension methods for vector slices with copyable elements
802
- pub trait CopyableVector < T > {
801
+ /// Extension methods for vector slices with cloneable elements
802
+ pub trait CloneableVector < T > {
803
803
/// Copy `self` into a new owned vector
804
804
fn to_owned ( & self ) -> ~[ T ] ;
805
805
@@ -808,7 +808,7 @@ pub trait CopyableVector<T> {
808
808
}
809
809
810
810
/// Extension methods for vector slices
811
- impl < ' a , T : Clone > CopyableVector < T > for & ' a [ T ] {
811
+ impl < ' a , T : Clone > CloneableVector < T > for & ' a [ T ] {
812
812
/// Returns a copy of `v`.
813
813
#[ inline]
814
814
fn to_owned ( & self ) -> ~[ T ] {
@@ -824,7 +824,7 @@ impl<'a, T: Clone> CopyableVector<T> for &'a [T] {
824
824
}
825
825
826
826
/// Extension methods for owned vectors
827
- impl < T : Clone > CopyableVector < T > for ~[ T ] {
827
+ impl < T : Clone > CloneableVector < T > for ~[ T ] {
828
828
#[ inline]
829
829
fn to_owned ( & self ) -> ~[ T ] { self . clone ( ) }
830
830
@@ -833,7 +833,7 @@ impl<T: Clone> CopyableVector<T> for ~[T] {
833
833
}
834
834
835
835
/// Extension methods for managed vectors
836
- impl < T : Clone > CopyableVector < T > for @[ T ] {
836
+ impl < T : Clone > CloneableVector < T > for @[ T ] {
837
837
#[ inline]
838
838
fn to_owned ( & self ) -> ~[ T ] { self . as_slice ( ) . to_owned ( ) }
839
839
@@ -1261,7 +1261,7 @@ impl<'a, T: TotalOrd> ImmutableTotalOrdVector<T> for &'a [T] {
1261
1261
}
1262
1262
1263
1263
/// Extension methods for vectors containing `Clone` elements.
1264
- pub trait ImmutableCopyableVector < T > {
1264
+ pub trait ImmutableCloneableVector < T > {
1265
1265
/**
1266
1266
* Partitions the vector into those that satisfies the predicate, and
1267
1267
* those that do not.
@@ -1273,7 +1273,7 @@ pub trait ImmutableCopyableVector<T> {
1273
1273
fn permutations ( self ) -> Permutations < T > ;
1274
1274
}
1275
1275
1276
- impl < ' a , T : Clone > ImmutableCopyableVector < T > for & ' a [ T ] {
1276
+ impl < ' a , T : Clone > ImmutableCloneableVector < T > for & ' a [ T ] {
1277
1277
#[ inline]
1278
1278
fn partitioned ( & self , f: |& T | -> bool) -> ( ~[ T ] , ~[ T ] ) {
1279
1279
let mut lefts = ~[ ] ;
@@ -1698,7 +1698,7 @@ impl<T> Mutable for ~[T] {
1698
1698
}
1699
1699
1700
1700
/// Extension methods for owned vectors containing `Clone` elements.
1701
- pub trait OwnedCopyableVector < T : Clone > {
1701
+ pub trait OwnedCloneableVector < T : Clone > {
1702
1702
/// Iterates over the slice `rhs`, copies each element, and then appends it to
1703
1703
/// the vector provided `v`. The `rhs` vector is traversed in-order.
1704
1704
///
@@ -1732,7 +1732,7 @@ pub trait OwnedCopyableVector<T:Clone> {
1732
1732
fn grow_set ( & mut self , index : uint , initval : & T , val : T ) ;
1733
1733
}
1734
1734
1735
- impl < T : Clone > OwnedCopyableVector < T > for ~[ T ] {
1735
+ impl < T : Clone > OwnedCloneableVector < T > for ~[ T ] {
1736
1736
#[ inline]
1737
1737
fn push_all ( & mut self , rhs : & [ T ] ) {
1738
1738
let new_len = self . len ( ) + rhs. len ( ) ;
0 commit comments