2013-01-17 23:28:42 -08:00
|
|
|
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2013-03-24 18:38:17 -07:00
|
|
|
//! The Rust prelude. Imported into every module by default.
|
2013-01-08 19:37:25 -08:00
|
|
|
|
|
|
|
/* Reexported core operators */
|
|
|
|
|
2013-01-30 09:55:33 -08:00
|
|
|
pub use either::{Either, Left, Right};
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use kinds::{Const, Copy, Owned, Durable};
|
2013-01-11 12:16:58 -05:00
|
|
|
pub use ops::{Add, Sub, Mul, Div, Modulo, Neg, Not};
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use ops::{BitAnd, BitOr, BitXor};
|
2013-01-30 09:54:13 -08:00
|
|
|
pub use ops::{Drop};
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use ops::{Shl, Shr, Index};
|
|
|
|
pub use option::{Option, Some, None};
|
|
|
|
pub use result::{Result, Ok, Err};
|
|
|
|
|
2013-03-28 19:12:48 -07:00
|
|
|
/* Reexported functions */
|
|
|
|
|
|
|
|
pub use io::{print, println};
|
|
|
|
|
2013-01-08 19:37:25 -08:00
|
|
|
/* Reexported types and traits */
|
|
|
|
|
2013-01-30 09:54:13 -08:00
|
|
|
pub use clone::Clone;
|
2013-03-27 15:20:44 -04:00
|
|
|
pub use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
|
2013-01-30 09:54:13 -08:00
|
|
|
pub use container::{Container, Mutable, Map, Set};
|
|
|
|
pub use hash::Hash;
|
2013-03-13 20:55:42 -04:00
|
|
|
pub use iter::{BaseIter, ReverseIter, MutableIter, ExtendedIter, EqIter};
|
|
|
|
pub use iter::{CopyableIter, CopyableOrderedIter, CopyableNonstrictIter};
|
2013-04-16 16:11:16 -07:00
|
|
|
pub use iter::{Times, ExtendedMutableIter};
|
2013-04-14 02:19:35 +10:00
|
|
|
pub use num::{Num, NumCast};
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use path::GenericPath;
|
2013-01-30 09:54:13 -08:00
|
|
|
pub use path::Path;
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use path::PosixPath;
|
2013-01-30 09:54:13 -08:00
|
|
|
pub use path::WindowsPath;
|
|
|
|
pub use ptr::Ptr;
|
2013-03-21 22:59:33 +01:00
|
|
|
pub use str::{StrSlice, OwnedStr};
|
2013-01-30 09:54:13 -08:00
|
|
|
pub use to_bytes::IterBytes;
|
|
|
|
pub use to_str::ToStr;
|
|
|
|
pub use tuple::{CopyableTuple, ImmutableTuple, ExtendedTupleOps};
|
2013-01-24 22:19:44 -05:00
|
|
|
pub use vec::{CopyableVector, ImmutableVector};
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
|
2013-04-18 15:53:29 -07:00
|
|
|
pub use vec::{OwnedVector, OwnedCopyableVector, MutableVector};
|
2013-03-20 12:49:22 -07:00
|
|
|
pub use io::{Reader, ReaderUtil, Writer, WriterUtil};
|
2013-01-08 19:37:25 -08:00
|
|
|
|
2013-03-13 18:17:12 -07:00
|
|
|
/* Reexported runtime types */
|
|
|
|
pub use comm::{stream, Port, Chan, GenericChan, GenericSmartChan, GenericPort, Peekable};
|
|
|
|
pub use task::spawn;
|
|
|
|
|
2013-01-08 19:37:25 -08:00
|
|
|
/* Reexported modules */
|
|
|
|
|
|
|
|
pub use at_vec;
|
|
|
|
pub use bool;
|
|
|
|
pub use cast;
|
|
|
|
pub use char;
|
|
|
|
pub use cmp;
|
|
|
|
pub use either;
|
|
|
|
pub use f32;
|
|
|
|
pub use f64;
|
|
|
|
pub use float;
|
|
|
|
pub use i16;
|
|
|
|
pub use i32;
|
|
|
|
pub use i64;
|
|
|
|
pub use i8;
|
|
|
|
pub use int;
|
|
|
|
pub use io;
|
|
|
|
pub use iter;
|
|
|
|
pub use libc;
|
|
|
|
pub use num;
|
|
|
|
pub use ops;
|
|
|
|
pub use option;
|
|
|
|
pub use os;
|
|
|
|
pub use path;
|
2013-02-02 03:10:12 -08:00
|
|
|
pub use comm;
|
2013-02-27 19:53:31 -08:00
|
|
|
pub use unstable;
|
2013-01-08 19:37:25 -08:00
|
|
|
pub use ptr;
|
|
|
|
pub use rand;
|
|
|
|
pub use result;
|
|
|
|
pub use str;
|
|
|
|
pub use sys;
|
|
|
|
pub use task;
|
|
|
|
pub use to_str;
|
|
|
|
pub use u16;
|
|
|
|
pub use u32;
|
|
|
|
pub use u64;
|
|
|
|
pub use u8;
|
|
|
|
pub use uint;
|
|
|
|
pub use vec;
|