Struct rustc::mir::interpret::Pointer [−][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?
Fields
alloc_id: AllocId
🔬 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?
offset: Size
🔬 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?
Methods
impl<'tcx> Pointer[src]
impl<'tcx> Pointerpub fn new(alloc_id: AllocId, offset: Size) -> Self[src]
pub fn new(alloc_id: AllocId, offset: Size) -> 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(crate) fn wrapping_signed_offset<C: HasDataLayout>(
self,
i: i64,
cx: C
) -> Self[src]
pub(crate) fn wrapping_signed_offset<C: HasDataLayout>(
self,
i: i64,
cx: C
) -> 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 overflowing_signed_offset<C: HasDataLayout>(
self,
i: i128,
cx: C
) -> (Self, bool)[src]
pub fn overflowing_signed_offset<C: HasDataLayout>(
self,
i: i128,
cx: C
) -> (Self, bool)🔬 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(crate) fn signed_offset<C: HasDataLayout>(
self,
i: i64,
cx: C
) -> EvalResult<'tcx, Self>[src]
pub(crate) fn signed_offset<C: HasDataLayout>(
self,
i: i64,
cx: C
) -> EvalResult<'tcx, 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 overflowing_offset<C: HasDataLayout>(
self,
i: Size,
cx: C
) -> (Self, bool)[src]
pub fn overflowing_offset<C: HasDataLayout>(
self,
i: Size,
cx: C
) -> (Self, bool)🔬 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 offset<C: HasDataLayout>(self, i: Size, cx: C) -> EvalResult<'tcx, Self>[src]
pub fn offset<C: HasDataLayout>(self, i: Size, cx: C) -> EvalResult<'tcx, 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?
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Pointer[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Pointerfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 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 From<Pointer> for Scalar[src]
impl From<Pointer> for Scalarimpl Copy for Pointer[src]
impl Copy for Pointerimpl Clone for Pointer[src]
impl Clone for Pointerfn clone(&self) -> Pointer[src]
fn clone(&self) -> PointerReturns 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 Pointer[src]
impl Debug for Pointerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for Pointer[src]
impl Eq for Pointerfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl PartialEq for Pointer[src]
impl PartialEq for Pointerfn eq(&self, other: &Pointer) -> bool[src]
fn eq(&self, other: &Pointer) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Pointer) -> bool[src]
fn ne(&self, other: &Pointer) -> boolThis method tests for !=.
impl Ord for Pointer[src]
impl Ord for Pointerfn cmp(&self, other: &Pointer) -> Ordering[src]
fn cmp(&self, other: &Pointer) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for Pointer[src]
impl PartialOrd for Pointerfn partial_cmp(&self, other: &Pointer) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Pointer) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Pointer) -> bool[src]
fn lt(&self, other: &Pointer) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Pointer) -> bool[src]
fn le(&self, other: &Pointer) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Pointer) -> bool[src]
fn gt(&self, other: &Pointer) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Pointer) -> bool[src]
fn ge(&self, other: &Pointer) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Encodable for Pointer[src]
impl Encodable for Pointerfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 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 Decodable for Pointer[src]
impl Decodable for Pointerfn decode<__D: Decoder>(d: &mut __D) -> Result<Pointer, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Pointer, __D::Error>🔬 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 Hash for Pointer[src]
impl Hash for Pointerfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl From<AllocId> for Pointer[src]
impl From<AllocId> for PointerProduces a Pointer which points to the beginning of the Allocation