mod trait_directive

module trait_directive

Structs and Unions

struct TraitDirective
name: String

The full Rust path of the trait, used as the name of the directive.

ident: String

The identifier for the trait.

options: Vec<DirectiveOption>

The directive options to use.

content: Vec<String>

The docstring for the trait.

items: Vec<Directive>

Items within the trait.

impls: Vec<ImplDirective>

Generic impls of the trait.

Variables

const DIRECTIVE_NAME: &'static str

Functions

fn add_impl(&mut self, impl_: ImplDirective)
fn change_parent(&mut self, new_parent: &str)

Change the parent module of the trait and its items.

fn directive_visibility(&self) -> &DirectiveVisibility

Return the visibility of this directive.

fn from_alias(parent_path: &str, alias: &ItemTraitAlias) -> Directive
fn from_item(parent_path: &str, item: &ItemTrait) -> Directive

Traits implemented

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