pub trait DebugWithContext {
    fn fmt_with_context(
        &self,
        formatter: &mut Formatter<'_>,
        context: &Context
    ) -> Result; fn with_context<'a, 'c>(
        &'a self,
        context: &'c Context
    ) -> WithContext<'a, 'c, Self> { ... } }

Required Methods§

source

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

Provided Methods§

source

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

Implementations on Foreign Types§

source§

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

source§

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

source§

impl<T> DebugWithContext for Vec<T>where
    T: DebugWithContext,

source§

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

source§

impl<T> DebugWithContext for [T]where
    T: DebugWithContext,

source§

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

source§

impl<T> DebugWithContext for Option<T>where
    T: DebugWithContext,

source§

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

source§

impl DebugWithContext for ()

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<T14, T15> DebugWithContext for (T14, T15)where
    T14: DebugWithContext,
    T15: DebugWithContext,

source§

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

source§

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

source§

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

source§

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

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)where
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T5: DebugWithContext,
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T4: DebugWithContext,
    T5: DebugWithContext,
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T3: DebugWithContext,
    T4: DebugWithContext,
    T5: DebugWithContext,
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T2: DebugWithContext,
    T3: DebugWithContext,
    T4: DebugWithContext,
    T5: DebugWithContext,
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T1: DebugWithContext,
    T2: DebugWithContext,
    T3: DebugWithContext,
    T4: DebugWithContext,
    T5: DebugWithContext,
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

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)where
    T0: DebugWithContext,
    T1: DebugWithContext,
    T2: DebugWithContext,
    T3: DebugWithContext,
    T4: DebugWithContext,
    T5: DebugWithContext,
    T6: DebugWithContext,
    T7: DebugWithContext,
    T8: DebugWithContext,
    T9: DebugWithContext,
    T10: DebugWithContext,
    T11: DebugWithContext,
    T12: DebugWithContext,
    T13: DebugWithContext,
    T14: DebugWithContext,
    T15: DebugWithContext,

source§

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

Implementors§