Struct smoltcp::wire::pretty_print::PrettyIndent
source · pub struct PrettyIndent { /* private fields */ }
Expand description
Indentation state.
Implementations§
source§impl PrettyIndent
impl PrettyIndent
sourcepub fn new(prefix: &'static str) -> PrettyIndent
pub fn new(prefix: &'static str) -> PrettyIndent
Create an indentation state. The entire listing will be indented by the width
of prefix
, and prefix
will appear at the start of the first line.