pub struct DwarfDirective {
pub kind: DwarfDirectiveKind,
pub span: Span,
}Expand description
Raw dwarf directive emitted by the compiler (e.g. @@dwarf).
Syntax:
@@DWARF dwarf-string
dwarf-string may have one of the
.byte byte-list // comma-separated hexadecimal byte values
.4byte int32-list // comma-separated hexadecimal integers in range [0..2^32-1]
.quad int64-list // comma-separated hexadecimal integers in range [0..2^64-1]
.4byte label
.quad labelFields§
§kind: DwarfDirectiveKind§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for DwarfDirective
impl Clone for DwarfDirective
Source§fn clone(&self) -> DwarfDirective
fn clone(&self) -> DwarfDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DwarfDirective
impl Debug for DwarfDirective
Source§impl PartialEq for DwarfDirective
impl PartialEq for DwarfDirective
Source§fn eq(&self, other: &DwarfDirective) -> bool
fn eq(&self, other: &DwarfDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PtxParser for DwarfDirective
impl PtxParser for DwarfDirective
Source§fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
Returns a parser function that can parse an instance of
Self.Source§impl PtxUnparser for DwarfDirective
impl PtxUnparser for DwarfDirective
Source§fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
Append the PTX token sequence representing
self to tokens.Source§fn unparse_tokens_mode(&self, tokens: &mut Vec<PtxToken>, spaced: bool)
fn unparse_tokens_mode(&self, tokens: &mut Vec<PtxToken>, spaced: bool)
Append tokens, optionally inserting spacing tokens for readability.
Source§fn to_tokens(&self) -> Vec<PtxToken>
fn to_tokens(&self) -> Vec<PtxToken>
Convenience helper that returns the serialized PTX token stream.
Source§fn to_tokens_spaced(&self) -> Vec<PtxToken>
fn to_tokens_spaced(&self) -> Vec<PtxToken>
Convenience helper that returns the serialized PTX token stream with
spacing/newlines inserted for readability.
Source§impl Serialize for DwarfDirective
impl Serialize for DwarfDirective
Source§impl Spanned for DwarfDirective
impl Spanned for DwarfDirective
impl StructuralPartialEq for DwarfDirective
Source§impl TreeDisplay for DwarfDirective
impl TreeDisplay for DwarfDirective
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
Auto Trait Implementations§
impl Freeze for DwarfDirective
impl RefUnwindSafe for DwarfDirective
impl Send for DwarfDirective
impl Sync for DwarfDirective
impl Unpin for DwarfDirective
impl UnsafeUnpin for DwarfDirective
impl UnwindSafe for DwarfDirective
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