Struct rustc::mir::VarBindingForm[][src]

pub struct VarBindingForm {
    pub binding_mode: BindingMode,
    pub opt_ty_info: Option<Span>,
}
🔬 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?

Fields

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

Is variable bound via x, mut x, ref x, or ref mut x?

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

If an explicit type was provided for this variable binding, this holds the source Span of that type.

NOTE: If you want to change this to a HirId, be wary that doing so breaks incremental compilation (as of this writing), while a Span does not cause our tests to fail.

Trait Implementations

impl Copy for VarBindingForm
[src]

impl Clone for VarBindingForm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for VarBindingForm
[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 VarBindingForm
[src]

impl Hash for VarBindingForm
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for VarBindingForm
[src]

Formats the value using the given formatter. Read more

impl Encodable for VarBindingForm
[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?

impl Decodable for VarBindingForm
[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?

impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for VarBindingForm
[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?

Auto Trait Implementations

impl !Send for VarBindingForm

impl !Sync for VarBindingForm