Trait rustc::mir::interpret::PointerArithmetic
[−]
[src]
pub trait PointerArithmetic: HasDataLayout { fn truncate_to_ptr(self, val: u128) -> (u64, bool) { ... } fn overflowing_signed_offset(self, val: u64, i: i128) -> (u64, bool) { ... } fn overflowing_offset(self, val: u64, i: u64) -> (u64, bool) { ... } fn signed_offset<'tcx>(self, val: u64, i: i64) -> EvalResult<'tcx, u64> { ... } fn offset<'tcx>(self, val: u64, i: u64) -> EvalResult<'tcx, u64> { ... } fn wrapping_signed_offset(self, val: u64, i: i64) -> 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?
Provided Methods
fn truncate_to_ptr(self, val: u128) -> (u64, 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?
fn overflowing_signed_offset(self, val: u64, i: i128) -> (u64, 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?
fn overflowing_offset(self, val: u64, i: u64) -> (u64, 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?
fn signed_offset<'tcx>(self, val: u64, i: i64) -> EvalResult<'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?
fn offset<'tcx>(self, val: u64, i: u64) -> EvalResult<'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?
fn wrapping_signed_offset(self, val: u64, i: i64) -> 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?
Implementors
impl<T: HasDataLayout> PointerArithmetic for T