[][src]Trait lark_debug_with::FmtWithSpecialized

pub trait FmtWithSpecialized<Cx: ?Sized> {
    fn fmt_with_specialized(&self, cx: &Cx, fmt: &mut Formatter) -> Result;
}

Useful trait for writing DebugWith implementations that are specialized to different contexts. Just derive Debug and use the macro debug_specialized_impl; then you can implement FmtWithSpecialized<Cx> for various specialized contexts as you choose.

Required methods

fn fmt_with_specialized(&self, cx: &Cx, fmt: &mut Formatter) -> Result

Loading content...

Implementors

impl<Cx: ?Sized, T: ?Sized> FmtWithSpecialized<Cx> for T where
    T: Debug
[src]

Loading content...