euv_core/reactive/id/
struct.rs1use super::*;
2
3#[derive(Clone, Copy, Debug, Default, Eq, Getter, Hash, New, Ord, PartialEq, PartialOrd)]
5pub struct SlotId {
6 #[get(type(copy))]
8 pub(crate) index: u32,
9 #[get(type(copy))]
11 pub(crate) generation: u32,
12}
13
14#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
16pub struct SignalId(pub(crate) SlotId);
17
18#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
20pub struct MemoId(pub(crate) SlotId);
21
22#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
24pub struct EffectId(pub(crate) SlotId);
25
26#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
28pub struct ScopeId(pub(crate) SlotId);