Msg

Trait Msg 

Source
pub trait Msg<T> {
    // Required method
    fn fmt(value: &T, f: &mut Formatter<'_>) -> Result<(), Error>;
}
Expand description

Msg is a trait for defining custom formatters for NoDebug values.

Required Methods§

Source

fn fmt(value: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Prints a custom message to the given formatter without necessarily revealing the values information.

Takes a reference to the value being debugged to allow some introspection.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Msg<T> for Ellipses

Source§

impl<T> Msg<T> for WithTypeInfo