mod struct_directive

module struct_directive

Implementation of the rust:struct directive

Macros

macro make_nodes

Structs and Unions

struct StructDirective
name: String
options: Vec<DirectiveOption>
content: Vec<String>
fields: Vec<VariableDirective>

Impls

impl StructDirective
const DIRECTIVE_NAME: &'static str
fn from_variant(parent_path: &str, variant: &Variant, inherited_visibility: &Option<&Visibility>) -> StructDirective
fn from_item(parent_path: &str, item: &ItemStruct, inherited_visibility: &Option<&Visibility>) -> Directive
fn from_union(parent_path: &str, item: &ItemUnion, inherited_visibility: &Option<&Visibility>) -> Directive
impl MdDirective for StructDirective
fn get_md_text(self, fence_size: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
fn fence_size(&self) -> usize
impl RstDirective for StructDirective
fn get_rst_text(self, level: usize, max_visibility: &DirectiveVisibility) -> Vec<String>