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

pub struct VarBindingForm<'tcx> {
    pub binding_mode: BindingMode,
    pub opt_ty_info: Option<Span>,
    pub opt_match_place: Option<(Option<Place<'tcx>>, 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.

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

Place of the RHS of the =, or the subject of the match where this variable is initialized. None in the case of let PATTERN;. Some((None, ..)) in the case of and let [mut] x = ... because (a) the right-hand side isn't evaluated as a place expression. (b) it gives a way to separate this case from the remaining cases for diagnostics.

Trait Implementations

impl<'tcx> Clone for VarBindingForm<'tcx>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tcx> PartialEq for VarBindingForm<'tcx>
[src]

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

This method tests for !=.

impl<'tcx> Eq for VarBindingForm<'tcx>
[src]

impl<'tcx> Hash for VarBindingForm<'tcx>
[src]

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

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

impl<'tcx> Debug for VarBindingForm<'tcx>
[src]

Formats the value using the given formatter. Read more

impl<'tcx> Encodable for VarBindingForm<'tcx>
[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<'tcx> Decodable for VarBindingForm<'tcx>
[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<'tcx>
[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<'tcx> !Send for VarBindingForm<'tcx>

impl<'tcx> !Sync for VarBindingForm<'tcx>