Location in rustc_middle::mir - Rust (original) (raw)

pub struct Location {
    pub block: BasicBlock,
    pub statement_index: usize,
}

Expand description

Location represents the position of the start of the statement; or, ifstatement_index equals the number of statements, then the start of the terminator.

The block that the location is within.

Source§

Source

Source

Returns the location immediately after this one within the enclosing block.

Note that if this location represents a terminator, then the resulting location would be out of bounds and invalid.

Source

Returns true if other is earlier in the control flow graph than self.

Source

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes