| Crates.io | fmtor |
| lib.rs | fmtor |
| version | 0.1.2 |
| created_at | 2020-11-02 09:13:05.854018+00 |
| updated_at | 2020-11-05 23:37:21.505104+00 |
| description | Formatting combinators for Options |
| homepage | |
| repository | https://github.com/TyPR124/fmtor |
| max_upload_size | |
| id | 307793 |
| size | 27,345 |
An extension trait for easily formatting missing values.
use fmtor::FmtOr;
let maybe_box: Option<Box<()>> = None;
println!("The box is at: {:p}", maybe_box.fmt_or("Null"));
Prints: The box is at: Null