pub enum StatementDirective {
Loc {
directive: LocationDirective,
span: Span,
},
Pragma {
directive: PragmaDirective,
span: Span,
},
Section {
directive: SectionDirective,
span: Span,
},
Reg {
directive: RegisterDirective,
span: Span,
},
Local {
directive: VariableDirective,
span: Span,
},
Param {
directive: VariableDirective,
span: Span,
},
Shared {
directive: VariableDirective,
span: Span,
},
Dwarf {
directive: DwarfDirective,
span: Span,
},
BranchTargets {
directive: BranchTargetsDirective,
span: Span,
},
CallTargets {
directive: CallTargetsDirective,
span: Span,
},
CallPrototype {
directive: CallPrototypeDirective,
span: Span,
},
}Expand description
Directive that applies to individual statements.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StatementDirective
impl Clone for StatementDirective
Source§fn clone(&self) -> StatementDirective
fn clone(&self) -> StatementDirective
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 StatementDirective
impl Debug for StatementDirective
Source§impl PartialEq for StatementDirective
impl PartialEq for StatementDirective
Source§impl PtxParser for StatementDirective
impl PtxParser for StatementDirective
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 StatementDirective
impl PtxUnparser for StatementDirective
Source§impl Spanned for StatementDirective
impl Spanned for StatementDirective
Source§impl TreeDisplay for StatementDirective
impl TreeDisplay for StatementDirective
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 StatementDirective
Auto Trait Implementations§
impl Freeze for StatementDirective
impl RefUnwindSafe for StatementDirective
impl Send for StatementDirective
impl Sync for StatementDirective
impl Unpin for StatementDirective
impl UnwindSafe for StatementDirective
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