Struct rhai_autodocs::module::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_items_with(self, items_order: ItemsOrder) -> Self
pub fn order_items_with(self, items_order: ItemsOrder) -> Self
Order documentation items in a specific way.
See ItemsOrder
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 generate(
self,
engine: &Engine
) -> Result<ModuleDocumentation, AutodocsError>
pub fn generate( self, engine: &Engine ) -> Result<ModuleDocumentation, AutodocsError>
sourcepub fn generate_with_glossary(
&self,
engine: &Engine
) -> Result<(ModuleDocumentation, ModuleGlossary), AutodocsError>
pub fn generate_with_glossary( &self, engine: &Engine ) -> Result<(ModuleDocumentation, ModuleGlossary), AutodocsError>
Generate documentation based on an engine instance and a list of all functions signature. Make sure all the functions, operators, plugins, etc. are registered inside this instance.
§Result
- A vector of documented modules and the glossary.
§Errors
- Failed to generate function metadata as json.
- Failed to parse module metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
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