Rust Crate for Specifying Bounds With Boolean Expressions
This crate works with no_std.
This crate can be compiled with the latest stable Rust toolchain. However, it is
useless without the unstable feature generic_const_exprs.
A simple example is listed below:
use *;
>: TrueConst,
bool_const provides simpler interfaces compared to the code that the Rust
compiler will suggest:
; as usize]:,
The Rust compiler rejects overly complex generic const expression, so you should
write a const fn to satisfy it:
use *;
>: TrueConst;
const
More examples can be found in [examples] directory.
License
MIT