Struct smoltcp::wire::pretty_print::PrettyPrinter
source · pub struct PrettyPrinter<'a, T: PrettyPrint> { /* private fields */ }
Expand description
Wrapper for using a PrettyPrint
where a Display
is expected.
Implementations§
source§impl<'a, T: PrettyPrint> PrettyPrinter<'a, T>
impl<'a, T: PrettyPrint> PrettyPrinter<'a, T>
source§impl<'a, T: PrettyPrint + AsRef<[u8]>> PrettyPrinter<'a, T>
impl<'a, T: PrettyPrint + AsRef<[u8]>> PrettyPrinter<'a, T>
sourcepub fn print(printable: &'a T) -> PrettyPrinter<'a, T>
pub fn print(printable: &'a T) -> PrettyPrinter<'a, T>
Create a PrettyPrinter
which prints the given object.