fmtor 0.1.2

Formatting combinators for Options
Documentation

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