Enum rustc_mir::interpret::place::Place [−][src]
pub enum Place { Ptr { ptr: Scalar, align: Align, extra: PlaceExtra, }, Local { frame: usize, local: Local, }, }
🔬 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
Ptr
🔬 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?
A place referring to a value allocated in the Memory
system.
Fields of Ptr
ptr: Scalar | 🔬 This is a nightly-only experimental API. ( |
align: Align | 🔬 This is a nightly-only experimental API. ( |
extra: PlaceExtra | 🔬 This is a nightly-only experimental API. ( |
Local
🔬 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?
A place referring to a value on the stack. Represented by a stack frame index paired with a Mir local index.
Fields of Local
frame: usize | 🔬 This is a nightly-only experimental API. ( |
local: Local | 🔬 This is a nightly-only experimental API. ( |
Methods
impl<'tcx> Place
[src]
impl<'tcx> Place
pub fn undef() -> Self
[src]
pub fn undef() -> Self
🔬 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?
Produces a Place that will error if attempted to be read from
pub fn from_scalar_ptr(ptr: Scalar, align: Align) -> Self
[src]
pub fn from_scalar_ptr(ptr: Scalar, align: Align) -> Self
🔬 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?
pub fn from_ptr(ptr: Pointer, align: Align) -> Self
[src]
pub fn from_ptr(ptr: Pointer, align: Align) -> Self
🔬 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?
pub fn to_ptr_align_extra(self) -> (Scalar, Align, PlaceExtra)
[src]
pub fn to_ptr_align_extra(self) -> (Scalar, Align, PlaceExtra)
🔬 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?
pub fn to_ptr_align(self) -> (Scalar, Align)
[src]
pub fn to_ptr_align(self) -> (Scalar, Align)
🔬 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?
pub fn to_ptr(self) -> EvalResult<'tcx, Pointer>
[src]
pub fn to_ptr(self) -> EvalResult<'tcx, 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?
pub(super) fn elem_ty_and_len(
self,
ty: Ty<'tcx>,
tcx: TyCtxt<'_, 'tcx, '_>
) -> (Ty<'tcx>, u64)
[src]
pub(super) fn elem_ty_and_len(
self,
ty: Ty<'tcx>,
tcx: TyCtxt<'_, 'tcx, '_>
) -> (Ty<'tcx>, u64)
🔬 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?
Trait Implementations
impl Copy for Place
[src]
impl Copy for Place
impl Clone for Place
[src]
impl Clone for Place
fn clone(&self) -> Place
[src]
fn clone(&self) -> Place
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Place
[src]
impl Debug for Place