Struct haybale::LocationDescription
source · pub struct LocationDescription<'p> {
pub modname: String,
pub funcname: String,
pub bbname: Name,
pub instr: BBInstrIndex,
pub source_loc: Option<&'p DebugLoc>,
}
Expand description
Describes a location in LLVM IR in a format more suitable for printing - for
instance, uses function names rather than references to Function
objects.
For a richer representation of a code location, see
Location
.
Fields§
§modname: String
§funcname: String
§bbname: Name
§instr: BBInstrIndex
§source_loc: Option<&'p DebugLoc>
Trait Implementations§
source§impl<'p> Clone for LocationDescription<'p>
impl<'p> Clone for LocationDescription<'p>
source§fn clone(&self) -> LocationDescription<'p>
fn clone(&self) -> LocationDescription<'p>
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 moresource§impl<'p> Debug for LocationDescription<'p>
impl<'p> Debug for LocationDescription<'p>
source§impl<'p> From<Location<'p>> for LocationDescription<'p>
impl<'p> From<Location<'p>> for LocationDescription<'p>
source§fn from(loc: Location<'p>) -> LocationDescription<'_>
fn from(loc: Location<'p>) -> LocationDescription<'_>
Converts to this type from the input type.
source§impl<'p> Hash for LocationDescription<'p>
impl<'p> Hash for LocationDescription<'p>
source§impl<'p> Ord for LocationDescription<'p>
impl<'p> Ord for LocationDescription<'p>
source§fn cmp(&self, other: &LocationDescription<'p>) -> Ordering
fn cmp(&self, other: &LocationDescription<'p>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'p> PartialEq for LocationDescription<'p>
impl<'p> PartialEq for LocationDescription<'p>
source§fn eq(&self, other: &LocationDescription<'p>) -> bool
fn eq(&self, other: &LocationDescription<'p>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'p> PartialOrd for LocationDescription<'p>
impl<'p> PartialOrd for LocationDescription<'p>
source§fn partial_cmp(&self, other: &LocationDescription<'p>) -> Option<Ordering>
fn partial_cmp(&self, other: &LocationDescription<'p>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'p> Eq for LocationDescription<'p>
impl<'p> StructuralEq for LocationDescription<'p>
impl<'p> StructuralPartialEq for LocationDescription<'p>
Auto Trait Implementations§
impl<'p> RefUnwindSafe for LocationDescription<'p>
impl<'p> Send for LocationDescription<'p>
impl<'p> Sync for LocationDescription<'p>
impl<'p> Unpin for LocationDescription<'p>
impl<'p> UnwindSafe for LocationDescription<'p>
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