prolangkit::debug

Trait DebugWithContext

Source
pub trait DebugWithContext<Ctx> {
    // Required method
    fn fmt(&self, ctx: &Ctx, f: &mut Formatter<'_>) -> Result;
}

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<'a, T: DebugWithContext<Ctx>, Ctx> DebugWithContext<Ctx> for &'a T

Source§

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

Source§

impl<C> DebugWithContext<C> for str

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§