Enum ChildRendering

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) -> ChildRendering

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<T> Any for ChildRendering where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ChildRendering

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>