pub struct DebugLoc {
pub line: u32,
pub col: Option<u32>,
pub filename: String,
pub directory: Option<String>,
}Expand description
Describes a “debug location” (source location)
Fields§
§line: u32The source line number
col: Option<u32>The source column number
Instructions and Terminators have this info (and will have Some
here), while GlobalVariables and Functions do not have this info (and
will have None)
filename: StringThe source filename
directory: Option<String>The source directory, if available
Trait Implementations§
Source§impl Ord for DebugLoc
impl Ord for DebugLoc
Source§impl PartialOrd for DebugLoc
impl PartialOrd for DebugLoc
impl Eq for DebugLoc
impl StructuralPartialEq for DebugLoc
Auto Trait Implementations§
impl Freeze for DebugLoc
impl RefUnwindSafe for DebugLoc
impl Send for DebugLoc
impl Sync for DebugLoc
impl Unpin for DebugLoc
impl UnwindSafe for DebugLoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more