genztools

Crates.iogenztools
lib.rsgenztools
version0.1.6
sourcesrc
created_at2024-02-19 20:09:58.425577
updated_at2024-02-19 21:52:03.29311
descriptionTools for readability of Result and Option types for zoomers
homepagehttps://github.com/BakerNet/genztools
repositoryhttps://github.com/BakerNet/genztools
max_upload_size
id1145624
size57,198
Hans Baker (BakerNet)

documentation

README

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();
Commit count: 0

cargo fmt