mod enum_directive
- module enum_directive
Structs and Unions
- struct EnumDirective
Struct to hold data for documenting an enum
- name: String
The full Rust path of the enum, used as the name of the directive.
- ident: String
The identifier for the enum.
- options: Vec<DirectiveOption>
The directive options to use.
- content: Vec<String>
The docstring for the enum.
- variants: Vec<StructDirective>
The variants within the enum.
- trait_impls: Vec<ImplDirective>
Trait impls for the enum.
Variables
- const DIRECTIVE_NAME: &'static str
Functions
- fn add_impl(&mut self, mut impl_: ImplDirective)
- fn change_parent(&mut self, new_parent: &str)
Change the parent module of the enum and its variants.
- fn directive_visibility(&self) -> &DirectiveVisibility
Return the visibility of this directive.
- fn from_item(parent_path: &str, item: &ItemEnum) -> Directive
Create a new
Directive::Enumfrom asyn::ItemEnum- Args:
- parent_path:
The full path of the module the enum is in.
- item:
The
syn::ItemEnumto parse.
- Returns:
A new
Directive::Enum, which contains the parsedEnumDirectivein it.
Traits implemented
- impl RstDirective for EnumDirective
- fn get_rst_text(self, level: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
- impl MdDirective for EnumDirective
- fn get_md_text(self, fence_size: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
- fn fence_size(&self) -> usize