ifeq 0.1.3

Inline if then as generics
Documentation
  • Coverage
  • 22.22%
    2 out of 9 items documented0 out of 8 items with examples
  • Size
  • Source code size: 4.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • mezeipetister/ifeq
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mezeipetister

IF_EQ

extern crate ifeq;
use ifeq::*;

assert_eq!(9.is(9).then_print("nine"), "nine");
assert_eq!(9.if_eq(9).then_print("nine"), "nine");
assert_eq!(9.if_eq(9).then(|| "nine"), "nine");