8000 GitHub - laesse/bool-toggle
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

laesse/bool-toggle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i love toggling bools it's one of my favourite things to do

Provides fn toggle(&mut self) on bool for toggling bools.

use bool_toggle::TogglingIsALifestyle;
let mut omg_i_want_to_be_toggled_soooo_badly = false;
assert_eq!(omg_i_want_to_be_toggled_soooo_badly, false);
omg_i_want_to_be_toggled_soooo_badly.toggle();
assert_eq!(omg_i_want_to_be_toggled_soooo_badly, true);
omg_i_want_to_be_toggled_soooo_badly.toggle();
assert_eq!(omg_i_want_to_be_toggled_soooo_badly, false);
let i_dont_want_to_be_toggled = false;
// That's okay.

Enterprise license

This crate supports a professional re-export of the trait, BoolToggleExt. It is only available when compiling with --cfg enterprise_license and obtaining an enterprise license. For license inquiries, send mail to /dev/null.

MSRV

The minimum supported Rust version of this crate is 1.1000.0. Lower versions might compile but are not supported.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0