Module redox::prelude [] [src]

The Rust Prelude

Because std is required by most serious Rust software, it is imported at the topmost level of every crate by default, as if each crate contains the following:

extern crate std;

This means that the contents of std can be accessed from any context with the std:: path prefix, as in use std::vec, use std::thread::spawn, etc.

Additionally, std contains a versioned prelude that reexports many of the most common traits, types, and functions. The contents of the prelude are imported into every module by default. Implicitly, all modules behave as if they contained the following use statement:

use std::prelude::v1::*;

The prelude is primarily concerned with exporting traits that are so pervasive that they would be onerous to import for every use, particularly those that are commonly mentioned in generic type bounds.

The current version of the prelude (version 1) lives in std::prelude::v1, and reexports the following.

Modules

v1

The first version of the prelude of The Rust Standard Library.