Crates.io | genztools |
lib.rs | genztools |
version | 0.1.6 |
source | src |
created_at | 2024-02-19 20:09:58.425577 |
updated_at | 2024-02-19 21:52:03.29311 |
description | Tools for readability of Result and Option types for zoomers |
homepage | https://github.com/BakerNet/genztools |
repository | https://github.com/BakerNet/genztools |
max_upload_size | |
id | 1145624 |
size | 57,198 |
Making Rust more accessible and readable for the upcoming generation of Rust engineers
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();