[][src]Trait phantom_newtype::DisplayerOf

pub trait DisplayerOf<T> {
    fn display(value: &T, f: &mut Formatter) -> Result;
}

This trait provides display capabilities for the type it parameterized with, T.

NOTE: If you ended up reading this doc, consider using regular newtype idiom instead of relying on phantom_newtype.

Required methods

fn display(value: &T, f: &mut Formatter) -> Result

Loading content...

Implementors

Loading content...