mod impl_directive
- module impl_directive
Functions
- fn nodes_for_impl(item: &ItemImpl) -> Vec<Node>
Generate docutils nodes for the impl block’s signature.
Structs and Unions
- struct ImplDirective
- name: String
- self_ty: String
- resolved_self_ty: String
- trait_: Option<String>
- resolved_trait: Option<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 module of the impl and its items.
- fn directive_visibility(&self) -> &DirectiveVisibility
Return the visibility of this directive.
- fn for_item(&self, name: &str) -> bool
- fn for_trait(&self, name: &str, parent_name: &str) -> bool
- fn from_item(parent_path: &str, item: &ItemImpl, inherited_visibility: &Option<&Visibility>) -> Self
- fn set_directive_visibility(&mut self, visibility: &DirectiveVisibility)
Traits implemented
- impl RstDirective for ImplDirective
- fn get_rst_text(self, level: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
- impl MdDirective for ImplDirective
- fn get_md_text(self, fence_size: usize, max_visibility: &DirectiveVisibility) -> Vec<String>
- fn fence_size(&self) -> usize