[][src]Struct llvm_ir::debugloc::DebugLoc

pub struct DebugLoc {
    pub line: u32,
    pub col: Option<u32>,
    pub filename: String,
    pub directory: Option<String>,
}

Describes a "debug location" (source location)

Fields

line: u32

The 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: String

The source filename

directory: Option<String>

The source directory, if available

Trait Implementations

impl Clone for DebugLoc[src]

impl Debug for DebugLoc[src]

impl Display for DebugLoc[src]

impl Eq for DebugLoc[src]

impl Hash for DebugLoc[src]

impl Ord for DebugLoc[src]

impl PartialEq<DebugLoc> for DebugLoc[src]

impl PartialOrd<DebugLoc> for DebugLoc[src]

impl StructuralEq for DebugLoc[src]

impl StructuralPartialEq for DebugLoc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.