Dynamic Formatting README
Simple, dynamic, Python-styled string formatting (Only support String,
{key} patterns).
Escape like {{ or }}.
Install
Errors
- Raise
DynamicFormatError::KeyErrorwhile the key in the brackets is not found indictionary. - Raise
DynamicFormatError::TokenErrorwhile there is any unmatched bracket ({or})
Examples
use dynamic_format;
assert_eq!;
use dynamic_format;
use HashMap;
let value_age = .to_string; // Make lifetime long enough
let dictionary = from;
assert_eq!
use dynamic_format;
assert!;
use dynamic_format;
assert!;