Struct inkwell::debug_info::DILocation
source · pub struct DILocation<'ctx> { /* private fields */ }
Expand description
A debug location within the source code. Contains the following information:
- line, column
- scope
- inlined at
Created by create_debug_location
of DebugInfoBuilder
and consumed by
set_current_debug_location
of Builder
.
Implementations§
source§impl<'ctx> DILocation<'ctx>
impl<'ctx> DILocation<'ctx>
pub fn get_line(&self) -> u32
pub fn get_column(&self) -> u32
pub fn get_scope(&self) -> DIScope<'ctx>
sourcepub fn as_mut_ptr(&self) -> LLVMMetadataRef
pub fn as_mut_ptr(&self) -> LLVMMetadataRef
Acquires the underlying raw pointer belonging to this DILocation
type.
Trait Implementations§
source§impl<'ctx> Clone for DILocation<'ctx>
impl<'ctx> Clone for DILocation<'ctx>
source§fn clone(&self) -> DILocation<'ctx>
fn clone(&self) -> DILocation<'ctx>
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<'ctx> Debug for DILocation<'ctx>
impl<'ctx> Debug for DILocation<'ctx>
source§impl<'ctx> PartialEq for DILocation<'ctx>
impl<'ctx> PartialEq for DILocation<'ctx>
source§fn eq(&self, other: &DILocation<'ctx>) -> bool
fn eq(&self, other: &DILocation<'ctx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'ctx> Copy for DILocation<'ctx>
impl<'ctx> Eq for DILocation<'ctx>
impl<'ctx> StructuralEq for DILocation<'ctx>
impl<'ctx> StructuralPartialEq for DILocation<'ctx>
Auto Trait Implementations§
impl<'ctx> RefUnwindSafe for DILocation<'ctx>
impl<'ctx> !Send for DILocation<'ctx>
impl<'ctx> !Sync for DILocation<'ctx>
impl<'ctx> Unpin for DILocation<'ctx>
impl<'ctx> UnwindSafe for DILocation<'ctx>
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