std: merge Iterator and IteratorUtil

This commit is contained in:
Erick Tryzelaar 2013-08-09 07:19:23 -07:00
parent a6614621af
commit 4062b84f4a
16 changed files with 507 additions and 587 deletions

View File

@ -15,7 +15,7 @@
#[allow(missing_doc)];
use std::iterator::{Iterator, IteratorUtil, Enumerate, FilterMap, Invert};
use std::iterator::{Iterator, Enumerate, FilterMap, Invert};
use std::util::replace;
use std::vec::{VecIterator, VecMutIterator};
use std::vec;

View File

@ -12,7 +12,6 @@
use std::{char, vec, util};
use std::num::strconv::{SignNone,SignNeg,SignAll,int_to_str_bytes_common};
use std::iterator::IteratorUtil;
#[deriving(Eq)]
enum States {

View File

@ -525,7 +525,6 @@ impl ConsoleTestState {
}
pub fn fmt_metrics(mm: &MetricMap) -> ~str {
use std::iterator::IteratorUtil;
let v : ~[~str] = mm.iter()
.transform(|(k,v)| fmt!("%s: %f (+/- %f)",
*k,

View File

@ -19,7 +19,7 @@ use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
use clone::Clone;
use cmp::{Eq, Equiv};
use hash::Hash;
use iterator::{Iterator, IteratorUtil, FromIterator, Extendable};
use iterator::{Iterator, FromIterator, Extendable};
use iterator::{FilterMap, Chain, Repeat, Zip};
use num;
use option::{None, Option, Some};

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@ use c_str::ToCStr;
use clone::Clone;
use container::Container;
use io;
use iterator::{IteratorUtil, range};
use iterator::range;
use libc;
use libc::{c_char, c_void, c_int, size_t};
use libc::FILE;

View File

@ -21,7 +21,7 @@ use c_str;
use clone::Clone;
use cmp::Eq;
use container::Container;
use iterator::{Iterator, IteratorUtil, range};
use iterator::{Iterator, range};
use libc;
use num;
use option::{None, Option, Some};

View File

@ -51,7 +51,7 @@ pub use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
pub use hash::Hash;
pub use iter::Times;
pub use iterator::Extendable;
pub use iterator::{Iterator, IteratorUtil, DoubleEndedIterator};
pub use iterator::{Iterator, DoubleEndedIterator};
pub use iterator::{ClonableIterator, OrdIterator};
pub use num::{Num, NumCast};
pub use num::{Orderable, Signed, Unsigned, Round};

View File

@ -63,7 +63,7 @@ Several modules in `core` are clients of `rt`:
use cell::Cell;
use clone::Clone;
use container::Container;
use iterator::{Iterator, IteratorUtil, range};
use iterator::{Iterator, range};
use option::{Some, None};
use ptr::RawPtr;
use rt::local::Local;

View File

@ -10,7 +10,6 @@
use container::Container;
use from_str::FromStr;
use iterator::IteratorUtil;
use libc;
use option::{Some, None};
use os;

View File

@ -23,7 +23,7 @@ use char::Char;
use clone::Clone;
use container::{Container, Mutable};
use iter::Times;
use iterator::{Iterator, FromIterator, Extendable, IteratorUtil};
use iterator::{Iterator, FromIterator, Extendable};
use iterator::{Filter, AdditiveIterator, Map};
use iterator::{Invert, DoubleEndedIterator};
use libc;
@ -2546,7 +2546,6 @@ impl Zero for @str {
#[cfg(test)]
mod tests {
use iterator::IteratorUtil;
use container::Container;
use option::Some;
use libc::c_char;

View File

@ -17,7 +17,7 @@ use str::OwnedStr;
use container::Container;
use cast;
use ptr;
use iterator::{Iterator, IteratorUtil};
use iterator::Iterator;
use vec::{CopyableVector, ImmutableVector};
#[cfg(stage0)]
use vec::OwnedVector;

View File

@ -17,7 +17,7 @@ The `ToBytes` and `IterBytes` traits
use cast;
use io;
use io::Writer;
use iterator::IteratorUtil;
use iterator::Iterator;
use option::{None, Option, Some};
use str::StrSlice;
use vec::ImmutableVector;

View File

@ -11,7 +11,7 @@
//! An ordered map and set for integer keys implemented as a radix trie
use prelude::*;
use iterator::{IteratorUtil, FromIterator, Extendable};
use iterator::{FromIterator, Extendable};
use uint;
use util::{swap, replace};
use vec;

View File

@ -15,7 +15,7 @@
use clone::Clone;
use vec;
use vec::ImmutableVector;
use iterator::IteratorUtil;
use iterator::Iterator;
pub use self::inner::*;

View File

@ -16,7 +16,7 @@ extern mod std;
use std::str::StrVector;
use std::vec::ImmutableVector;
use std::iterator::IteratorUtil;
use std::iterator::Iterator;
use std::int;
trait to_str {