fmtor 0.1.2

Formatting combinators for Options
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented5 out of 8 items with examples
  • Size
  • Source code size: 26.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • TyPR124/fmtor
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • TyPR124

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