mod struct_directive
- module struct_directive
Macros
- macro make_nodes
Structs and Unions
- struct StructDirective
- name: String
The full Rust path of the struct, used as the name of the directive.
- ident: String
The identifier for the struct.
- options: Vec<DirectiveOption>
The directive options to use.
- content: Vec<String>
The docstring for the struct.
- fields: Vec<VariableDirective>
The fields of the struct, named or unnamed.
- trait_impls: Vec<ImplDirective>
Trait impls for the struct/union.
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 struct and its items.
- fn directive_visibility(&self) -> &DirectiveVisibility
Return the visibility of this directive.
- fn from_variant(parent_path: &str, variant: &Variant, inherited_visibility: &Option<&Visibility>) -> StructDirective
Traits implemented
- impl RstDirective for StructDirective
- fn get_rst_text(self, level: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
- impl MdDirective for StructDirective
- fn get_md_text(self, fence_size: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
- fn fence_size(&self) -> usize