Skip to main content

windows_metadata/writer/
id.rs

1macro_rules! identifiers {
2    ($($name:ident)+) => {
3        $(
4        #[derive(Default,Copy, Clone, Hash, PartialEq, Eq, Ord, PartialOrd, Debug)]
5        pub struct $name(pub(crate) u32);
6    )*
7    };
8}
9
10identifiers! {
11    Attribute
12    ClassLayout
13    Constant
14    Field
15    GenericParam
16    ImplMap
17    InterfaceImpl
18    MemberRef
19    MethodDef
20    ModuleRef
21    NestedClass
22    MethodParam
23    TypeDef
24    TypeRef
25    TypeSpec
26    Module
27    AssemblyRef
28    Param
29
30    Property
31    PropertyMap
32    Event
33    EventMap
34    MethodSemantics
35
36    BlobId
37    StringId
38}