pub enum ModuleDirective {
ModuleVariable {
linkage: Option<DataLinkage>,
directive: ModuleVariableDirective,
span: Span,
},
EntryFunction {
linkage: Option<CodeLinkage>,
directive: EntryFunctionDirective,
span: Span,
},
FuncFunction {
linkage: Option<CodeLinkage>,
directive: FuncFunctionDirective,
span: Span,
},
AliasFunction {
directive: AliasFunctionDirective,
span: Span,
},
ModuleInfo {
directive: ModuleInfoDirectiveKind,
span: Span,
},
Debug {
directive: ModuleDebugDirective,
span: Span,
},
}Expand description
Module-level directives recognised by the parser.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ModuleDirective
impl Clone for ModuleDirective
Source§fn clone(&self) -> ModuleDirective
fn clone(&self) -> ModuleDirective
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 ModuleDirective
impl Debug for ModuleDirective
Source§impl PartialEq for ModuleDirective
impl PartialEq for ModuleDirective
Source§impl PtxParser for ModuleDirective
impl PtxParser for ModuleDirective
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 ModuleDirective
impl PtxUnparser for ModuleDirective
Source§impl Spanned for ModuleDirective
impl Spanned for ModuleDirective
Source§impl TreeDisplay for ModuleDirective
impl TreeDisplay for ModuleDirective
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 ModuleDirective
Auto Trait Implementations§
impl Freeze for ModuleDirective
impl RefUnwindSafe for ModuleDirective
impl Send for ModuleDirective
impl Sync for ModuleDirective
impl Unpin for ModuleDirective
impl UnwindSafe for ModuleDirective
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