mod executable_directive
- module executable_directive
Implementation of the
rust:executabledirective.Structs and Unions
- ExecutableDirective
Struct to hold data required for documenting an executable.
- name: String
The name of the executable.
- options: Vec < DirectiveOption >
The options for the executable directive.
- content: Vec < String >
The docstring for the executable’s main file.
- items: Vec < Directive >
The items within the executable.
Impls
- impl ExecutableDirective
- const DIRECTIVE_NAME: & 'static str
- fn new (name : & str , ast : & File) -> ExecutableDirective
Create a new
ExecutableDirectivefor the executable from the source file.The generated documentation produces a
rust:executabledirective.- Args:
- exe_name:
The name of the executable.
- ast:
Reference to
syn::Filestruct from parsing the executable’s main file.