Module syntax::ptr[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

The AST pointer

Provides P<T>, a frozen owned smart pointer, as a replacement for @T in the AST.

Motivations and benefits

Re-exports

use std::fmt;
use std::fmt::Display;
use std::fmt::Debug;
use std::iter::FromIterator;
use std::ops::Deref;
use std::mem;
use std::ptr;
use std::slice;
use std::vec;
use serialize::Encodable;
use serialize::Decodable;
use serialize::Encoder;
use serialize::Decoder;
use rustc_data_structures::stable_hasher::StableHasher;
use rustc_data_structures::stable_hasher::StableHasherResult;
use rustc_data_structures::stable_hasher::HashStable;

Structs

P [
Experimental
]

An owned smart pointer.

Functions

P [
Experimental
]

Construct a P<T> from a T value.