mso-tri-state: fearless booleans
Gone are the days where a simple true/false boolean variable suffices. Modern software requires
modern solutions: MsoTriState.
Trusted by Microsoft.
Old, slow, ancient, unsafe code
let foo = true;
if foo
// Hard to read, intent unclear
let bar = 1 == 2;
match bar
New, fast, web-scale, safe code
extern crate mso_tri_state;
use MsoTriState;
// Clean and easy to read
let foo = msoTrue;
if foo.into
// Simple, effortless conversion
let bar: MsoTriState = .into;
match bar
// Compatible with all major brands
let has_a_3 = from;
println!; // prints "Has a 3: msoFalse"