Trait PrintWithContext

Source
pub trait PrintWithContext<C> {
    // Required method
    fn contextual_fmt_with(
        &self,
        context: &C,
        f: &mut Formatter<'_>,
        options: &Options,
        indent: usize,
    ) -> Result;
}

Required Methods§

Source

fn contextual_fmt_with( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, ) -> Result

Implementations on Foreign Types§

Source§

impl<'a, T: PrintWithContext<C> + ?Sized, C> PrintWithContext<C> for &'a T

Source§

fn contextual_fmt_with( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, ) -> Result

Source§

impl<T: PrintWithContext<C>, C> PrintWithContext<C> for Stripped<T>

Source§

fn contextual_fmt_with( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, ) -> Result

Source§

impl<T: PrintWithContext<C>, M, C> PrintWithContext<C> for Meta<T, M>

Source§

fn contextual_fmt_with( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, ) -> Result

Implementors§