Trait PrintWithSizeAndContext

Source
pub trait PrintWithSizeAndContext<C> {
    // Required method
    fn contextual_fmt_with_size(
        &self,
        context: &C,
        f: &mut Formatter<'_>,
        options: &Options,
        indent: usize,
        sizes: &[Size],
        index: &mut usize,
    ) -> Result;
}

Required Methods§

Source

fn contextual_fmt_with_size( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Implementations on Foreign Types§

Source§

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

Source§

fn contextual_fmt_with_size( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Source§

impl<T: PrintWithSizeAndContext<C>, C> PrintWithSizeAndContext<C> for [T]

Source§

fn contextual_fmt_with_size( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Source§

impl<T: PrintWithSizeAndContext<C>, C> PrintWithSizeAndContext<C> for HashSet<T>

Source§

fn contextual_fmt_with_size( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Source§

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

Source§

fn contextual_fmt_with_size( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Source§

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

Source§

fn contextual_fmt_with_size( &self, context: &C, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Implementors§