Crates.io | static-cond |
lib.rs | static-cond |
version | 0.3.0 |
source | src |
created_at | 2016-02-18 20:40:29.619217 |
updated_at | 2022-03-26 20:41:23.050366 |
description | Macro for performing comparisons during macro expansion |
homepage | https://github.com/durka/static-cond |
repository | https://github.com/durka/static-cond |
max_upload_size | |
id | 4208 |
size | 18,981 |
This is a tiny Rust crate that allows macros to make comparisons.
Normally, macros can capture all kinds of syntax fragments but they can't compare them. However, by defining a fresh macro and jumping to it immediately, comparisons can be hacked in. See the source for more details.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.