pub enum ChildRendering {
HTML,
Plain,
Skip,
}Expand description
Returned by the format_document_with_formatter callback to indicate
whether children of a node should be rendered with full HTML as usual, in
“plain” mode, such as for the title attribute of an image (which is a full
subtree in CommonMark — there are probably few other use cases for “plain”
mode), or whether they should be skipped.
Variants§
HTML
Indicates children should be rendered in full HTML as usual.
Plain
Indicates children should be rendered in “plain” mode; see the source of
format_document_with_formatter for details.
Skip
Indicates children should be skipped.
Trait Implementations§
Source§impl Clone for ChildRendering
impl Clone for ChildRendering
Source§fn clone(&self) -> ChildRendering
fn clone(&self) -> ChildRendering
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChildRendering
impl Debug for ChildRendering
impl Copy for ChildRendering
Auto Trait Implementations§
impl Freeze for ChildRendering
impl RefUnwindSafe for ChildRendering
impl Send for ChildRendering
impl Sync for ChildRendering
impl Unpin for ChildRendering
impl UnwindSafe for ChildRendering
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