Enum rustc_mir::build::ForGuard [−][src]
enum ForGuard {
ValWithinGuard(usize),
RefWithinGuard,
OutsideGuard,
}🔬 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?
ForGuard indicates whether we are talking about:
- the temp for a local binding used solely within guard expressions,
- the temp that holds reference to (1.), which is actually what the guard expressions see, or
- the temp for use outside of guard expressions.
Variants
ValWithinGuard(usize)🔬 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?
The usize identifies for which candidate pattern we want the
local binding. We keep a temp per-candidate to accommodate
two-phase borrows (see LocalsForNode documentation).
RefWithinGuard🔬 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?
OutsideGuard🔬 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 ForGuard[src]
impl Copy for ForGuardimpl Clone for ForGuard[src]
impl Clone for ForGuardfn clone(&self) -> ForGuard[src]
fn clone(&self) -> ForGuardReturns 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 ForGuard[src]
impl Debug for ForGuardfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ForGuard[src]
impl PartialEq for ForGuardfn eq(&self, other: &ForGuard) -> bool[src]
fn eq(&self, other: &ForGuard) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ForGuard) -> bool[src]
fn ne(&self, other: &ForGuard) -> boolThis method tests for !=.
impl Eq for ForGuard[src]
impl Eq for ForGuardfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)