Struct rhai_autodocs::options::Options
source · pub struct Options { /* private fields */ }Expand description
Options to configure documentation generation.
Implementations§
source§impl Options
impl Options
sourcepub fn include_standard_packages(self, include_standard_packages: bool) -> Self
pub fn include_standard_packages(self, include_standard_packages: bool) -> Self
Include the standard package functions and modules documentation in the generated documentation markdown.
sourcepub fn order_functions_with(self, functions_order: FunctionOrder) -> Self
pub fn order_functions_with(self, functions_order: FunctionOrder) -> Self
Order functions in a specific way.
See FunctionOrder for more details.
sourcepub fn format_sections_with(self, sections_format: SectionFormat) -> Self
pub fn format_sections_with(self, sections_format: SectionFormat) -> Self
Format doc comments ‘sections’, markdown that starts with the # character,
with special formats.
See SectionFormat for more details.
sourcepub fn for_markdown_processor(
self,
markdown_processor: MarkdownProcessor
) -> Self
pub fn for_markdown_processor( self, markdown_processor: MarkdownProcessor ) -> Self
Generate markdown code compatible for a specific markdown processor.
See MarkdownProcessor for more details.
sourcepub fn generate(
self,
engine: &Engine
) -> Result<ModuleDocumentation, AutodocsError>
pub fn generate( self, engine: &Engine ) -> Result<ModuleDocumentation, AutodocsError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more