Crate formatify

source ·
Expand description

Formatify is a rust library designed for dynamic string formatting. It offers flexible and powerful tools for parsing strings with placeholders and replacing them with corresponding values. The library’s key feature is its ability to handle various placeholder formats and alignment options.

Structs

  • Formatify is a struct in the formatify library, a versatile string formatting tool in Rust. It provides methods for replacing placeholders in a string with values from a HashMap, measuring the lengths of strings with placeholders, and extracting placeholder keys from a string. This struct is the core of the library, enabling users to perform various string formatting tasks efficiently. With methods like replace_placeholders, measure_lengths, and extract_placeholder_keys, Formatify simplifies the process of dynamic string manipulation, catering to use cases where template-based string formatting is essential.