| 1 | use formatxrust-analyzer cargo formatx 0.2.4 crate/::formatxrust-analyzer cargo formatx 0.2.4 macros/formatx!; |
| 2 | |
| 3 | fn mainrust-analyzer cargo formatx 0.2.4 main().() { |
| 4 | let template = "{} {0:-^10} {percentage:.2}"; |
| 5 | let text = formatxrust-analyzer cargo formatx 0.2.4 macros/formatx!!(template, "world!", "hello", percentage = 99.9999); |
| 6 | printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", text.unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()); |
| 7 | } |