genztools 0.1.6

Tools for readability of Result and Option types for zoomers
Documentation

GenZTools

Crates.io Version docs.rs

Making Rust more accessible and readable for the upcoming generation of Rust engineers

Examples:

Before:

let is_logged_in = get_user().await.ok().flatten().is_some();

After:

let is_logged_in = get_user().await.bet().on_a_stack().no_cap();

or

Before:

let new_thing = my_opt.map(|x| transform(x)).unwrap_or_default();

After:

let new_thing = my_opt.glow_up(|x| transform(x)).on_god_or_basic();