pub trait PrintWithSize {
// Required method
fn fmt_with_size(
&self,
f: &mut Formatter<'_>,
options: &Options,
indent: usize,
sizes: &[Size],
index: &mut usize,
) -> Result<(), Error>;
}Expand description
Printing with precomputed sizes.
Implemented by the value types that can be expanded over several lines.
sizes holds the layout decisions produced by PrecomputeSize, in
depth-first order, and index walks through them as printing proceeds.
Recurses once per nesting level; each level runs through
on_sufficient_stack.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".