Struct haybale::Location[][src]

pub struct Location<'p> {
    pub module: &'p Module,
    pub func: &'p Function,
    pub bb: &'p BasicBlock,
    pub instr: BBInstrIndex,
    pub source_loc: Option<&'p DebugLoc>,
}
Expand description

Fully describes a code location within the LLVM IR.

Fields

module: &'p Modulefunc: &'p Functionbb: &'p BasicBlockinstr: BBInstrIndexsource_loc: Option<&'p DebugLoc>

Source location which this IR location corresponds to, if available.

Implementations

Format this Location as a string, including the full module name

Format this Location as a string, omitting the module name

Format this Location as a string, including the short module name. The short module name is the part of the module name after the last /, if any; or the full module name, if the module name does not contain a /.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

Implementation of PartialEq assumes that module names are unique; that function names are unique within a module; and that bb names are unique within a function

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

This method tests for !=.

Our implementation of PartialEq satisfies the requirements of Eq

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.