pub struct Markdown<W: Write> { /* private fields */ }
Expand description
Struct for generating Markdown
Implementations§
Source§impl<W: Write> Markdown<W>
impl<W: Write> Markdown<W>
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Returns the underlying writer
and consumes the object
Sourcepub fn write<T: MarkdownWritable>(&mut self, element: T) -> Result<(), Error>
pub fn write<T: MarkdownWritable>(&mut self, element: T) -> Result<(), Error>
Writes a MarkdownWritable to the document
§Returns
()
or std::io::Error
if an error occurred during writing to the underlying writer
Auto Trait Implementations§
impl<W> Freeze for Markdown<W>where
W: Freeze,
impl<W> RefUnwindSafe for Markdown<W>where
W: RefUnwindSafe,
impl<W> Send for Markdown<W>where
W: Send,
impl<W> Sync for Markdown<W>where
W: Sync,
impl<W> Unpin for Markdown<W>where
W: Unpin,
impl<W> UnwindSafe for Markdown<W>where
W: UnwindSafe,
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