mz_repr::explain::text

Trait DisplayText

Source
pub trait DisplayText<C = ()>
where Self: Sized,
{ // Required method fn fmt_text(&self, f: &mut Formatter<'_>, ctx: &mut C) -> Result; }
Expand description

A trait implemented by explanation types that can be rendered as super::ExplainFormat::Text.

Required Methods§

Source

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

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.

Implementations on Foreign Types§

Source§

impl<A, C> DisplayText<C> for Option<A>
where A: DisplayText<C>,

Source§

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

Source§

impl<A, C> DisplayText<C> for Box<A>
where A: DisplayText<C>,

Source§

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

Source§

impl<T> DisplayText for &T
where T: DisplayText,

Source§

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

Implementors§