Skip to content

stdlib: added (2,3,4)-valued logic ADTs #1202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

boggle
Copy link
Contributor

@boggle boggle commented Nov 21, 2011

This is useful for writing caches and perhaps in typestate predicates.

It also adds a companion module for bool with from_str, to_str, ... fns, similar to what is available for the unsigned integer types.

All modules have the same interface. I implemented the (3,4)-valued logics with bitops for performance.

This is useful for writing caches and perhaps in typestate predicates.
It also adds a companion module for bool with from_str, to_str, ... fns.
@brson
Copy link
Contributor

brson commented Nov 21, 2011

Thanks!

@brson brson closed this Nov 21, 2011
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Kobzol pushed a commit to Kobzol/rust that referenced this pull request Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants