Struct TerminatorCtx

Source
pub(crate) struct TerminatorCtx<'a> {
Show 22 fields pub(crate) function: &'a MirFunction, pub(crate) local_indices: &'a BTreeMap<u32, Option<LocalId>>, pub(crate) local_runtime_types: &'a BTreeMap<u32, Option<ValType>>, pub(crate) local_heap_ownership: &'a BTreeMap<u32, MirHeapOwnership>, pub(crate) runtime: &'a RuntimeFunctions, pub(crate) pointer_drop_functions: &'a BTreeMap<String, FunctionId>, pub(crate) memory_id: MemoryId, pub(crate) structs: &'a [MirStructDecl], pub(crate) enums: &'a [MirEnumDecl], pub(crate) block_id_to_pc: &'a BTreeMap<u32, i32>, pub(crate) pc_local: LocalId, pub(crate) break_target: InstrSeqId, pub(crate) out_slot_param_local: Option<LocalId>, pub(crate) out_slot_payload_bytes: u32, pub(crate) scratch_i32_local: LocalId, pub(crate) scratch_i32_local_b: LocalId, pub(crate) scratch_i32_local_c: LocalId, pub(crate) scratch_i32_local_d: LocalId, pub(crate) scratch_i64_local: LocalId, pub(crate) shadow_stack_frame_bytes: u32, pub(crate) parallel_tmp_i64_locals: &'a [LocalId], pub(crate) parallel_tmp_i32_locals: &'a [LocalId],
}

Fields§

§function: &'a MirFunction§local_indices: &'a BTreeMap<u32, Option<LocalId>>§local_runtime_types: &'a BTreeMap<u32, Option<ValType>>§local_heap_ownership: &'a BTreeMap<u32, MirHeapOwnership>§runtime: &'a RuntimeFunctions§pointer_drop_functions: &'a BTreeMap<String, FunctionId>§memory_id: MemoryId§structs: &'a [MirStructDecl]§enums: &'a [MirEnumDecl]§block_id_to_pc: &'a BTreeMap<u32, i32>§pc_local: LocalId§break_target: InstrSeqId§out_slot_param_local: Option<LocalId>§out_slot_payload_bytes: u32§scratch_i32_local: LocalId§scratch_i32_local_b: LocalId§scratch_i32_local_c: LocalId§scratch_i32_local_d: LocalId§scratch_i64_local: LocalId§shadow_stack_frame_bytes: u32§parallel_tmp_i64_locals: &'a [LocalId]§parallel_tmp_i32_locals: &'a [LocalId]

Trait Implementations§

Source§

impl<'a> Clone for TerminatorCtx<'a>

Source§

fn clone(&self) -> TerminatorCtx<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for TerminatorCtx<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for TerminatorCtx<'a>

§

impl<'a> RefUnwindSafe for TerminatorCtx<'a>

§

impl<'a> Send for TerminatorCtx<'a>

§

impl<'a> Sync for TerminatorCtx<'a>

§

impl<'a> Unpin for TerminatorCtx<'a>

§

impl<'a> UnwindSafe for TerminatorCtx<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.