Enum rustc_mir::build::ForGuard[][src]

enum ForGuard {
    ValWithinGuard,
    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:

  1. the temp for a local binding used solely within guard expressions,
  2. the temp that holds reference to (1.), which is actually what the guard expressions see, or
  3. the temp for use outside of guard expressions.

Variants

🔬 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?

🔬 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?

🔬 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 Clone for ForGuard
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ForGuard
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ForGuard
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ForGuard
[src]

Auto Trait Implementations

impl Send for ForGuard

impl Sync for ForGuard