libtoggle
is a Rust library for feature toggles.
Basic usage: ```rust use toggle::{Toggle, Disabled, Enabled};
struct HelloStruct
fn main() { let nomap = HelloStruct{ t: Disabled::new(), } nomap.t.asref().map(|| { println!("i am a spooky ghost"); });
let mut hasmap = HelloStruct{ t: Enabled::new(HashMap::new()), }; hasmap.t.as_mut().map(|t| { println!("hello world!"); }); } ```