mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 07:53:24 +00:00
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]
|
#[legacy_exports]
|
||||||
mod vec;
|
mod vec;
|
||||||
mod at_vec;
|
mod at_vec;
|
||||||
#[legacy_exports]
|
|
||||||
mod bool;
|
mod bool;
|
||||||
#[legacy_exports]
|
|
||||||
mod tuple;
|
mod tuple;
|
||||||
#[legacy_exports]
|
|
||||||
mod unit;
|
mod unit;
|
||||||
#[legacy_exports]
|
|
||||||
mod uniq;
|
mod uniq;
|
||||||
|
|
||||||
// Ubiquitous-utility-type modules
|
// Ubiquitous-utility-type modules
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
use cmp::{Eq, Ord};
|
use cmp::{Eq, Ord};
|
||||||
|
|
||||||
trait TupleOps<T,U> {
|
pub trait TupleOps<T,U> {
|
||||||
pure fn first() -> T;
|
pure fn first() -> T;
|
||||||
pure fn second() -> U;
|
pure fn second() -> U;
|
||||||
pure fn swap() -> (U, T);
|
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 zip(&self) -> ~[(A, B)];
|
||||||
fn map<C>(&self, f: &fn(a: &A, b: &B) -> C) -> ~[C];
|
fn map<C>(&self, f: &fn(a: &A, b: &B) -> C) -> ~[C];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user