Skip to main content

render_listing

Function render_listing 

Source
pub fn render_listing(
    disks: &[PhysicalDisk],
    width: usize,
    color: bool,
) -> String
Expand description

Render the full disk4n6 list view: each disk as a header line followed by its proportional partition bar (see render_disk_bar). Synthesized disks (macOS APFS containers, Linux device-mapper) whose volumes share space rather than occupy fixed extents get a plain volume list instead of a — misleading — proportional bar. color selects ANSI vs ASCII (the caller passes whether stdout is a TTY).