fmtor

Crates.iofmtor
lib.rsfmtor
version0.1.2
sourcesrc
created_at2020-11-02 09:13:05.854018
updated_at2020-11-05 23:37:21.505104
descriptionFormatting combinators for Options
homepage
repositoryhttps://github.com/TyPR124/fmtor
max_upload_size
id307793
size27,345
Tyler Ruckinger (TyPR124)

documentation

https://docs.rs/fmtor

README

FmtOr

Tests crates.io docs.rs MIT Licensed Apache2 Licensed

An extension trait for easily formatting missing values.

Example

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

Commit count: 11

cargo fmt