Skip to content

A macro that generates an enum with the variants `Yes` and `No`.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

BrainiumLLC/yes-or-no

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yes-or-no

crates.io badge docs.rs badge CI Status

A macro that generates an enum with the variants Yes and No.

use yes_or_no::yes_or_no;

yes_or_no!(Hungry);

assert_eq!(Hungry::from(true), Hungry::Yes);
assert_eq!(Hungry::from(false), Hungry::No);
assert!(Hungry::Yes.yes());
assert!(Hungry::No.no());

About

A macro that generates an enum with the variants `Yes` and `No`.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Languages