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
37
38
//! Event-kind identifiers used to gate which events a state will accept.
use fmt;
/// A compile-time event-kind label.
///
/// Kinds partition events so a state can declare it only accepts certain ones
/// (`#[only_accepts(kind = "external")]`). The inner string is always a
/// `'static` constant produced by the derive, so kinds cost no allocation and
/// can sit directly in the error path.
;
/// True if the two kind sets share at least one label.
///
/// An event is accepted by a restricted state when their kind sets intersect.
pub