(index<- ) ./libcore/prelude.rs
git branch: * master 5200215 auto merge of #14035 : alexcrichton/rust/experimental, r=huonw
modified: Fri May 9 13:02:28 2014
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! The core prelude
12 //!
13 //! For more information, see std::prelude.
14
15 // Reexported core operators
16 pub use kinds::{Copy, Send, Sized, Share};
17 pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
18 pub use ops::{BitAnd, BitOr, BitXor};
19 pub use ops::{Drop, Deref, DerefMut};
20 pub use ops::{Shl, Shr, Index};
21 pub use option::{Option, Some, None};
22 pub use result::{Result, Ok, Err};
23
24 // Reexported functions
25 pub use iter::range;
26 pub use mem::drop;
27
28 // Reexported types and traits
29
30 pub use char::Char;
31 pub use clone::Clone;
32 pub use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater, Equiv};
33 pub use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
34 pub use iter::{FromIterator, Extendable};
35 pub use iter::{Iterator, DoubleEndedIterator, RandomAccessIterator, CloneableIterator};
36 pub use iter::{OrdIterator, MutableDoubleEndedIterator, ExactSize};
37 pub use num::{Num, NumCast, CheckedAdd, CheckedSub, CheckedMul};
38 pub use num::{Signed, Unsigned};
39 pub use num::{Primitive, Int, ToPrimitive, FromPrimitive};
40 pub use ptr::RawPtr;
41 pub use str::{Str, StrSlice};
42 pub use tuple::{Tuple1, Tuple2, Tuple3, Tuple4};
43 pub use tuple::{Tuple5, Tuple6, Tuple7, Tuple8};
44 pub use tuple::{Tuple9, Tuple10, Tuple11, Tuple12};
45 pub use slice::{ImmutableEqVector, ImmutableTotalOrdVector};
46 pub use slice::{MutableVector};
47 pub use slice::{Vector, ImmutableVector};