mod macro_directive

module macro_directive

Implementation of the rust:macro directive

Structs and Unions

struct MacroDirective
name: String
ident: String
options: Vec<DirectiveOption>
content: Vec<String>

Implementations

impl MacroDirective

Variables

const DIRECTIVE_NAME: &'static str

Functions

fn change_parent(&mut self, new_parent: &str)

Change the parent module of the macro.

fn directive_visibility(&self) -> &DirectiveVisibility

Return the visibility of this directive.

fn from_item(parent_path: &str, item: &ItemMacro) -> Option<Directive>

Traits implemented

impl RstDirective for MacroDirective

Functions

fn get_rst_text(self, level: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
impl MdDirective for MacroDirective

Functions

fn get_md_text(self, fence_size: usize, max_visibility: &DirectiveVisibility) -> Vec<String>