mod variable_directive

module variable_directive

Macros

macro var_from_item

Structs and Unions

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

Variables

const DIRECTIVE_NAME: &'static str

Functions

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

Change the parent directive of the variable.

fn directive_visibility(&self) -> &DirectiveVisibility

Return the visibility of this directive.

fn from_const(parent_path: &str, item: &ItemConst) -> Directive
fn from_extern_static(parent_path: &str, item: &ForeignItemStatic) -> Directive
fn from_fields(parent_path: &str, fields: &Fields, inherited_visibility: &Option<&Visibility>, index_entry_type: IndexEntryType) -> Vec<VariableDirective>
fn from_impl_const(parent_path: &str, item: &ImplItemConst, inherited_visibility: &Option<&Visibility>) -> Directive
fn from_static(parent_path: &str, item: &ItemStatic) -> Directive
fn from_trait_const(parent_path: &str, item: &TraitItemConst, inherited_visibility: &Option<&Visibility>) -> Directive

Traits implemented

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