2019-09-26 03:09:51 +08:00
|
|
|
#![feature(allow_internal_unstable)]
|
2021-04-15 11:19:24 +02:00
|
|
|
#![feature(bench_black_box)]
|
2020-05-12 20:09:55 -07:00
|
|
|
#![feature(extend_one)]
|
2022-02-10 00:47:48 +11:00
|
|
|
#![feature(let_else)]
|
2021-08-29 19:42:41 +02:00
|
|
|
#![feature(min_specialization)]
|
2022-02-10 00:47:48 +11:00
|
|
|
#![feature(new_uninit)]
|
2021-11-01 10:04:01 -04:00
|
|
|
#![feature(step_trait)]
|
2022-02-10 00:47:48 +11:00
|
|
|
#![feature(stmt_expr_attributes)]
|
2019-09-26 05:30:10 +00:00
|
|
|
#![feature(test)]
|
2019-09-26 03:09:51 +08:00
|
|
|
|
2019-09-26 03:26:16 +00:00
|
|
|
pub mod bit_set;
|
2021-11-05 14:50:29 -04:00
|
|
|
pub mod interval;
|
2019-12-22 17:42:04 -05:00
|
|
|
pub mod vec;
|
2022-02-10 00:47:48 +11:00
|
|
|
|
|
|
|
/// Type size assertion. The first argument is a type and the second argument is its expected size.
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! static_assert_size {
|
|
|
|
($ty:ty, $size:expr) => {
|
|
|
|
const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];
|
|
|
|
};
|
|
|
|
}
|