pub struct MachSrcLoc {
pub start: CodeOffset,
pub end: CodeOffset,
pub loc: MaybeRelSourceLoc,
}Expand description
A source-location mapping resulting from a compilation.
Fields§
§start: CodeOffsetThe 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: CodeOffsetThe end 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.
loc: MaybeRelSourceLocThe source location.
Trait Implementations§
Source§impl Clone for MachSrcLoc
impl Clone for MachSrcLoc
Source§fn clone(&self) -> MachSrcLoc
fn clone(&self) -> MachSrcLoc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MachSrcLoc
impl Debug for MachSrcLoc
Source§impl<'de> Deserialize<'de> for MachSrcLoc
Available on crate feature enable-serde only.
impl<'de> Deserialize<'de> for MachSrcLoc
Available on crate feature
enable-serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MachSrcLoc
impl PartialEq for MachSrcLoc
Source§impl Serialize for MachSrcLoc
Available on crate feature enable-serde only.
impl Serialize for MachSrcLoc
Available on crate feature
enable-serde only.impl StructuralPartialEq for MachSrcLoc
Auto Trait Implementations§
impl Freeze for MachSrcLoc
impl RefUnwindSafe for MachSrcLoc
impl Send for MachSrcLoc
impl Sync for MachSrcLoc
impl Unpin for MachSrcLoc
impl UnsafeUnpin for MachSrcLoc
impl UnwindSafe for MachSrcLoc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more