Module pretty

Module pretty 

Source

Re-exports§

pub use parser::*;
pub use splitter::*;
pub use utils::*;

Modules§

parser
splitter
utils

Structs§

MillisecondOption
The options struct serves as a configuration mechanism for both parsing input and producing the final formatted output. It allows you to customize the behavior and settings used during these processes to tailor the results according to your specific requirements.

Enums§

OutputFormat
Determines the output format for the duration. It can be either short, long, or colon-separated. Short: 1h 2m 3s, Long: 1 hour, 2 minutes, 3 seconds, Colon: 1:02:03
SecondsOptions
Options for formatting seconds and milliseconds; either combined or separated.
Separator

Traits§

MillisecondFormatter
Protocol for being a Millisecond Formatter. The protocol is implemented for core::time::Duration and Millisecond structs.