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
39
40
41
42
43
44
45
46
47
48
//! Conceptually constant identifiers accepted by the macros
use Ident;
use format_ident;
/// The identifier of attributes processed by this crate
pub
/// On associated types, the argument specifying the unification strategy.
///
/// Example:
///
/// ```rust, ignore
/// trait Foo {
/// #[enum_delegate(unify=enum_wrap)]
/// type Bar;
/// }
/// ```
// dreams of being a const but can't because format_ident is not const
pub
/// On associated types, an argument value for `unify`.
///
/// Example:
///
/// ```rust, ignore
/// trait Foo {
/// #[enum_delegate(unify="same")]
/// type Bar;
/// }
/// ```
pub const TYPE_UNIFICATION_SAME: &str = "same";
/// On associated types, an argument value for `unify`.
///
/// Example:
///
/// ```rust, ignore
/// trait Foo {
/// #[enum_delegate(unify="enum_wrap")]
/// type Bar;
/// }
/// ```
pub const TYPE_UNIFICATION_ENUM_WRAP: &str = "enum_wrap";