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
sourceimpl<T: Clone + CompilePhase> Clone for MachSrcLoc<T> where
T::SourceLocType: Clone,
impl<T: Clone + CompilePhase> Clone for MachSrcLoc<T> where
T::SourceLocType: Clone,
sourcefn clone(&self) -> MachSrcLoc<T>
fn clone(&self) -> MachSrcLoc<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug + CompilePhase> Debug for MachSrcLoc<T> where
T::SourceLocType: Debug,
impl<T: Debug + CompilePhase> Debug for MachSrcLoc<T> where
T::SourceLocType: Debug,
sourceimpl<T: PartialEq + CompilePhase> PartialEq<MachSrcLoc<T>> for MachSrcLoc<T> where
T::SourceLocType: PartialEq,
impl<T: PartialEq + CompilePhase> PartialEq<MachSrcLoc<T>> for MachSrcLoc<T> where
T::SourceLocType: PartialEq,
sourcefn eq(&self, other: &MachSrcLoc<T>) -> bool
fn eq(&self, other: &MachSrcLoc<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MachSrcLoc<T>) -> bool
fn ne(&self, other: &MachSrcLoc<T>) -> bool
This method tests for !=
.
impl<T: CompilePhase> StructuralPartialEq for MachSrcLoc<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for MachSrcLoc<T> where
<T as CompilePhase>::SourceLocType: RefUnwindSafe,
impl<T> Send for MachSrcLoc<T> where
<T as CompilePhase>::SourceLocType: Send,
impl<T> Sync for MachSrcLoc<T> where
<T as CompilePhase>::SourceLocType: Sync,
impl<T> Unpin for MachSrcLoc<T> where
<T as CompilePhase>::SourceLocType: Unpin,
impl<T> UnwindSafe for MachSrcLoc<T> where
<T as CompilePhase>::SourceLocType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more