pub trait DebugWithContext {
    // Required method
    fn fmt_with_context(
        &self,
        formatter: &mut Formatter<'_>,
        context: &Context<'_>
    ) -> Result;

    // Provided method
    fn with_context<'a, 'c, 'eng>(
        &'a self,
        context: &'c Context<'eng>
    ) -> WithContext<'a, 'c, 'eng, Self> { ... }
}

Required Methods§

source

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

Provided Methods§

source

fn with_context<'a, 'c, 'eng>( &'a self, context: &'c Context<'eng> ) -> WithContext<'a, 'c, 'eng, Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DebugWithContext for ()

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<'t, T> DebugWithContext for &'t T
where T: Debug,

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, _context: &Context<'_> ) -> Result

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T7, T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T8, T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T9, T10, T11, T12, T13, T14, T15> DebugWithContext for (T9, T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T10, T11, T12, T13, T14, T15> DebugWithContext for (T10, T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T11, T12, T13, T14, T15> DebugWithContext for (T11, T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T12, T13, T14, T15> DebugWithContext for (T12, T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T13, T14, T15> DebugWithContext for (T13, T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T14, T15> DebugWithContext for (T14, T15)

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T15> DebugWithContext for (T15,)
where T15: DebugWithContext,

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T> DebugWithContext for Option<T>

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T> DebugWithContext for [T]

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

source§

impl<T> DebugWithContext for Vec<T>

source§

fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result

Implementors§