Enum rustc::mir::interpret::AllocType[][src]

pub enum AllocType<'tcx, M> {
    Function(Instance<'tcx>),
    Static(DefId),
    Memory(M),
}
🔬 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?

Variants

🔬 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 alloc id is used as a function pointer

🔬 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 alloc id points to a static variable

🔬 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 alloc id points to memory

Trait Implementations

impl<'a, 'gcx, M: HashStable<StableHashingContext<'a>>> HashStable<StableHashingContext<'a>> for AllocType<'gcx, M>
[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?

impl<'tcx, M: Debug> Debug for AllocType<'tcx, M>
[src]

Formats the value using the given formatter. Read more

impl<'tcx, M: Clone> Clone for AllocType<'tcx, M>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tcx, M: Eq> Eq for AllocType<'tcx, M>
[src]

impl<'tcx, M: PartialEq> PartialEq for AllocType<'tcx, M>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'tcx, M: Hash> Hash for AllocType<'tcx, M>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'tcx, M: Decodable> Decodable for AllocType<'tcx, M>
[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?

impl<'tcx, M: Encodable> Encodable for AllocType<'tcx, M>
[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?

Auto Trait Implementations

impl<'tcx, M> !Send for AllocType<'tcx, M>

impl<'tcx, M> !Sync for AllocType<'tcx, M>