Enum ChildRendering

#[non_exhaustive]
pub enum ChildRendering

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

impl Clone for ChildRendering

fn clone(&self) -> Self

impl Copy for ChildRendering

impl Debug for ChildRendering

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for ChildRendering

impl RefUnwindSafe for ChildRendering

impl Send for ChildRendering

impl Sync for ChildRendering

impl Unpin for ChildRendering

impl UnsafeUnpin for ChildRendering

impl UnwindSafe for ChildRendering

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for ChildRendering where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for ChildRendering where T: 'static + ?Sized,

impl<T> Borrow<T> for ChildRendering where T: ?Sized,

impl<T> BorrowMut<T> for ChildRendering where T: ?Sized,

impl<T> CloneToUninit for ChildRendering where T: Clone,

impl<T> From<T> for ChildRendering

impl<T> ToOwned for ChildRendering where T: Clone,

impl<T, S> SimdFrom<T, S> for ChildRendering where S: Simd,

impl<T, U> Into<U> for ChildRendering where U: From<T>,

impl<T, U> TryFrom<U> for ChildRendering where U: Into<T>,

impl<T, U> TryInto<U> for ChildRendering where U: TryFrom<T>,