Struct rustc_middle::mir::Location [−][src]
pub struct Location {
pub block: BasicBlock,
pub statement_index: usize,
}Expand description
Location represents the position of the start of the statement; or, if
statement_index equals the number of statements, then the start of the
terminator.
Fields
block: BasicBlockThe block that the location is within.
statement_index: usizeImplementations
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.
Returns true if other is earlier in the control flow graph than self.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Locationimpl UnwindSafe for LocationBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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