De-export bool, tuple, unit, uniq. Part of #3583.
This commit is contained in:
parent
43a9d90b48
commit
fd8e7aab71
@ -175,13 +175,9 @@ mod ptr;
|
||||
#[legacy_exports]
|
||||
mod vec;
|
||||
mod at_vec;
|
||||
#[legacy_exports]
|
||||
mod bool;
|
||||
#[legacy_exports]
|
||||
mod tuple;
|
||||
#[legacy_exports]
|
||||
mod unit;
|
||||
#[legacy_exports]
|
||||
mod uniq;
|
||||
|
||||
// Ubiquitous-utility-type modules
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
use cmp::{Eq, Ord};
|
||||
|
||||
trait TupleOps<T,U> {
|
||||
pub trait TupleOps<T,U> {
|
||||
pure fn first() -> T;
|
||||
pure fn second() -> U;
|
||||
pure fn swap() -> (U, T);
|
||||
@ -34,7 +34,7 @@ impl<T: Copy, U: Copy> (T, U): TupleOps<T,U> {
|
||||
|
||||
}
|
||||
|
||||
trait ExtendedTupleOps<A,B> {
|
||||
pub trait ExtendedTupleOps<A,B> {
|
||||
fn zip(&self) -> ~[(A, B)];
|
||||
fn map<C>(&self, f: &fn(a: &A, b: &B) -> C) -> ~[C];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user