pub struct LocationDirective {
pub file_index: u32,
pub line: u32,
pub column: u32,
pub inlined_at: Option<LocationInlinedAt>,
pub span: Span,
}Expand description
Structured representation of a .loc directive inside a PTX function.
Syntax: .loc file_index line_number column_position .loc file_index line_number column_position,function_name label {+ immediate }, inlined_at file_index2 line_number2 column_position2
Fields§
§file_index: u32§line: u32§column: u32§inlined_at: Option<LocationInlinedAt>§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for LocationDirective
impl Clone for LocationDirective
Source§fn clone(&self) -> LocationDirective
fn clone(&self) -> LocationDirective
Returns a duplicate 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 Debug for LocationDirective
impl Debug for LocationDirective
Source§impl PartialEq for LocationDirective
impl PartialEq for LocationDirective
Source§impl Spanned for LocationDirective
impl Spanned for LocationDirective
Source§impl TreeDisplay for LocationDirective
impl TreeDisplay for LocationDirective
Source§fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
Display this node in tree format. Read more
impl StructuralPartialEq for LocationDirective
Auto Trait Implementations§
impl Freeze for LocationDirective
impl RefUnwindSafe for LocationDirective
impl Send for LocationDirective
impl Sync for LocationDirective
impl Unpin for LocationDirective
impl UnwindSafe for LocationDirective
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