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

Implementations on Foreign Types§

source§

impl<T> DisplayText<()> for &Twhere T: DisplayText,

source§

fn fmt_text(&self, f: &mut Formatter<'_>, ctx: &mut ()) -> 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<A, C> DisplayText<C> for Option<A>where A: DisplayText<C>,

source§

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

Implementors§

source§

impl DisplayText<()> for UnsupportedFormat

source§

impl<'a, C> DisplayText<C> for UsedIndexeswhere C: AsMut<Indent> + AsRef<&'a dyn ExprHumanizer>,

source§

impl<T: DisplayText<C>, C, F: Fn() -> C> DisplayText<()> for TextStringAt<'_, T, C, F>