Struct cranelift_codegen::MachSrcLoc
source · pub struct MachSrcLoc<T: CompilePhase> {
pub start: CodeOffset,
pub end: CodeOffset,
pub loc: T::SourceLocType,
}
Expand description
A source-location mapping resulting from a compilation.
Fields§
§start: CodeOffset
The start of the region of code corresponding to a source location. This is relative to the start of the function, not to the start of the section.
end: CodeOffset
The end of the region of code corresponding to a source location. This is relative to the start of the section, not to the start of the section.
loc: T::SourceLocType
The source location.
Trait Implementations§
source§impl<T: Clone + CompilePhase> Clone for MachSrcLoc<T>where
T::SourceLocType: Clone,
impl<T: Clone + CompilePhase> Clone for MachSrcLoc<T>where
T::SourceLocType: Clone,
source§fn clone(&self) -> MachSrcLoc<T>
fn clone(&self) -> MachSrcLoc<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more