I need to print arbitrary structures in human-readable form. The problem is they may contain very large vectors, so I would like to limit their length up to N elements appended with ellipsis.

What is a simplest way to achieve that without messing around with procedural macros? Some crates that provide that out-of-the-box?