Enum rustc::mir::StatementKind
[−]
[src]
pub enum StatementKind<'tcx> { Assign(Place<'tcx>, Rvalue<'tcx>), SetDiscriminant { place: Place<'tcx>, variant_index: usize, }, StorageLive(Local), StorageDead(Local), InlineAsm { asm: Box<InlineAsm>, outputs: Vec<Place<'tcx>>, inputs: Vec<Operand<'tcx>>, }, Validate(ValidationOp, Vec<ValidationOperand<'tcx, Place<'tcx>>>), EndRegion(Scope), Nop, }
🔬 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
Assign(Place<'tcx>, Rvalue<'tcx>)
🔬 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?
Write the RHS Rvalue to the LHS Place.
SetDiscriminant
🔬 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?
Write the discriminant for a variant to the enum Place.
Fields of SetDiscriminant
place: Place<'tcx> | 🔬 This is a nightly-only experimental API. ( |
variant_index: usize | 🔬 This is a nightly-only experimental API. ( |
StorageLive(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?
Start a live range for the storage of the local.
StorageDead(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?
End the current live range for the storage of the local.
InlineAsm
🔬 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?
Execute a piece of inline Assembly.
Fields of InlineAsm
asm: Box<InlineAsm> | 🔬 This is a nightly-only experimental API. ( |
outputs: Vec<Place<'tcx>> | 🔬 This is a nightly-only experimental API. ( |
inputs: Vec<Operand<'tcx>> | 🔬 This is a nightly-only experimental API. ( |
Validate(ValidationOp, Vec<ValidationOperand<'tcx, Place<'tcx>>>)
🔬 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?
Assert the given places to be valid inhabitants of their type. These statements are currently only interpreted by miri and only generated when "-Z mir-emit-validate" is passed. See https://internals.rust-lang.org/t/types-as-contracts/5562/73 for more details.
EndRegion(Scope)
🔬 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?
Mark one terminating point of a region scope (i.e. static region). (The starting point(s) arise implicitly from borrows.)
Nop
🔬 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?
No-op. Useful for deleting instructions without affecting statement indices.
Trait Implementations
impl<'gcx> HashStable<StableHashingContext<'gcx>> for StatementKind<'gcx>
[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'gcx>,
hasher: &mut StableHasher<W>
)
[src]
&self,
hcx: &mut StableHashingContext<'gcx>,
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<'tcx> Clone for StatementKind<'tcx>
[src]
fn clone(&self) -> StatementKind<'tcx>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'tcx> Debug for StatementKind<'tcx>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'tcx> Encodable for StatementKind<'tcx>
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[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?