Skip to main content

Module format

Module format 

Source
Expand description

Formatting utilities for UI display.

This module provides functions for formatting package details, byte sizes, and other UI elements into human-readable strings and ratatui lines.

Functionsยง

format_bytes
What: Format bytes into human-readable string with appropriate unit.
format_details_lines
What: Format the current AppState::details into themed ratatui lines.
format_signed_bytes
What: Format signed bytes into human-readable string with +/- prefix.
human_bytes
What: Format a byte count using binary units with one decimal place.