1
Fork 0

std: Collapse SlicePrelude traits

This commit collapses the various prelude traits for slices into just one trait:

* SlicePrelude/SliceAllocPrelude => SliceExt
* CloneSlicePrelude/CloneSliceAllocPrelude => CloneSliceExt
* OrdSlicePrelude/OrdSliceAllocPrelude => OrdSliceExt
* PartialEqSlicePrelude => PartialEqSliceExt
This commit is contained in:
Alex Crichton 2014-12-11 09:44:17 -08:00
parent 126db549b0
commit 7741516a8b
42 changed files with 782 additions and 539 deletions

View file

@ -34,7 +34,7 @@ use option::Option::{None, Some};
use ops::FnMut;
use ptr::RawPtr;
use raw::{Repr, Slice};
use slice::{mod, SlicePrelude};
use slice::{mod, SliceExt};
use uint;
/// A trait to abstract the idea of creating a new instance of a type from a
@ -1146,7 +1146,7 @@ const TAG_CONT_U8: u8 = 0b1000_0000u8;
pub mod raw {
use ptr::RawPtr;
use raw::Slice;
use slice::SlicePrelude;
use slice::SliceExt;
use str::{is_utf8, StrPrelude};
/// Converts a slice of bytes to a string slice without checking