Module drone_core::prelude [] [src]

The Drone Prelude.

It is an analogue of std::prelude, which is not available in #![no_std] contexts.

To automatically inject the imports into every module, place this code to the crate root:

#![feature(prelude_import)]

#[prelude_import]
#[allow(unused_imports)]
use drone_core::prelude::*;

Reexports

pub use core::prelude::v1::*;
pub use core::ops::GeneratorState::*;

Structs

AsyncFuture

A generator-based future.

Box

A pointer type for heap allocation.

String

A UTF-8 encoded, growable string.

Vec

A contiguous growable array type, written Vec<T> but pronounced 'vector'.

Enums

Async

Return type of future, indicating whether a value is ready or not.

Traits

Future

Trait for types which are a placeholder of a value that may become available at some later point in time.

ToOwned

A generalization of Clone to borrowed data.

ToString

A trait for converting a value to a String.

Generator [
Experimental
]

The trait implemented by builtin generator types.

IntoFuture

Class of types which can be converted into a future.

SliceConcatExt [
Experimental
]

An extension trait for concatenating slices

Stream

A stream of values, not all of which may have been produced yet.

Type Definitions

Poll

Return type of the Future::poll method, indicates whether a future's value is ready or not.