pub trait PrecomputeSize {
// Required method
fn pre_compute_size(&self, options: &Options, sizes: &mut Vec<Size>) -> Size;
}Expand description
Computation of the printed layout, ahead of printing.
Implementations push one Size per array/object encountered, in
depth-first order, and return the size of the value itself.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".