pub trait ToMarkdownWith {
type Context: Sized;
// Required method
fn write_markdown_with<W: Write>(
&self,
writer: &mut W,
context: Self::Context,
) -> Result<(), MarkdownError>;
// Provided method
fn to_markdown_string_with(
&self,
context: Self::Context,
) -> Result<String, MarkdownError> { ... }
}Required Associated Types§
Required Methods§
fn write_markdown_with<W: Write>( &self, writer: &mut W, context: Self::Context, ) -> Result<(), MarkdownError>
Provided Methods§
fn to_markdown_string_with( &self, context: Self::Context, ) -> Result<String, MarkdownError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.