pub trait DxDocumentable {
// Required methods
fn to_dx_markdown(&self) -> Result<String>;
fn to_dx_markdown_with_config(
&self,
config: &DxMarkdownConfig,
) -> Result<String>;
fn to_dxm_document(&self) -> Result<DxmDocument>;
}Expand description
Trait for types that can generate DX Markdown documentation
Required Methods§
Sourcefn to_dx_markdown(&self) -> Result<String>
fn to_dx_markdown(&self) -> Result<String>
Generate DX Markdown documentation with default config
Sourcefn to_dx_markdown_with_config(
&self,
config: &DxMarkdownConfig,
) -> Result<String>
fn to_dx_markdown_with_config( &self, config: &DxMarkdownConfig, ) -> Result<String>
Generate DX Markdown documentation with custom config
Sourcefn to_dxm_document(&self) -> Result<DxmDocument>
fn to_dxm_document(&self) -> Result<DxmDocument>
Generate DX Markdown as a DxmDocument
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".