1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#![cfg_attr(feature="nightly", feature(const_trait_impl))]
#![deny(warnings)]
#![allow(clippy::type_complexity)]
#![doc(test(attr(deny(warnings))))]
#![doc(test(attr(allow(dead_code))))]
#![doc(test(attr(allow(unused_variables))))]
#![no_std]
use core::fmt::Debug;
use core::hash::Hash;
use core::num::{NonZeroUsize};
pub type RawId = (usize, NonZeroUsize);
pub trait ComponentId: Debug + Copy + Eq + Ord + Hash + Send + Sync {
fn from_raw(raw: RawId) -> Self;
fn into_raw(self) -> RawId;
}
#[cfg(feature="nightly")]
include!("nightly.rs");
#[cfg(not(feature="nightly"))]
include!("stable.rs");