#[non_exhaustive]#[repr(u8)]pub enum MetadataCode {
Show 45 variants
StringOld = 1,
Value = 2,
Node = 3,
Name = 4,
DistinctNode = 5,
Kind = 6,
Location = 7,
OldNode = 8,
OldFnNode = 9,
NamedNode = 10,
Attachment = 11,
GenericDebug = 12,
Subrange = 13,
Enumerator = 14,
BasicType = 15,
File = 16,
DerivedType = 17,
CompositeType = 18,
SubroutineType = 19,
CompileUnit = 20,
Subprogram = 21,
LexicalBlock = 22,
LexicalBlockFile = 23,
Namespace = 24,
TemplateType = 25,
TemplateValue = 26,
GlobalVar = 27,
LocalVar = 28,
Expression = 29,
ObjcProperty = 30,
ImportedEntity = 31,
Module = 32,
Macro = 33,
MacroFile = 34,
Strings = 35,
GlobalDeclAttachment = 36,
GlobalVarExpr = 37,
IndexOffset = 38,
Index = 39,
Label = 40,
StringType = 41,
CommonBlock = 44,
GenericSubrange = 45,
ArgList = 46,
AssignId = 47,
}Expand description
METADATA block codes
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StringOld = 1
MDSTRING
[values]
Value = 2
VALUE
[type num, value num]
Node = 3
NODE
[n x md num]
Name = 4
STRING
[values]
DistinctNode = 5
DISTINCT_NODE
[n x md num]
Kind = 6
KIND
[n x [id, name]]
Location = 7
LOCATION
[distinct, line, col, scope, inlined-at?]
OldNode = 8
OLD_NODE
[n x (type num, value num)]
OldFnNode = 9
OLD_FN_NODE
[n x (type num, value num)]
NamedNode = 10
NAMED_NODE
[n x mdnodes]
Attachment = 11
ATTACHMENT
[m x [value, [n x [id, mdnode]]]
GenericDebug = 12
GENERIC_DEBUG
[distinct, tag, vers, header, n x md num]
Subrange = 13
SUBRANGE
[distinct, count, lo]
Enumerator = 14
ENUMERATOR
[isUnsigned|distinct, value, name]
BasicType = 15
BASIC_TYPE
[distinct, tag, name, size, align, enc]
File = 16
FILE
[distinct, filename, directory, checksumkind, checksum]
DerivedType = 17
DERIVED_TYPE
[distinct, …]
CompositeType = 18
COMPOSITE_TYPE
[distinct, …]
SubroutineType = 19
SUBROUTINE_TYPE
[distinct, flags, types, cc]
CompileUnit = 20
COMPILE_UNIT
[distinct, …]
Subprogram = 21
SUBPROGRAM
[distinct, …]
LexicalBlock = 22
LEXICAL_BLOCK
[distinct, scope, file, line, column]
LexicalBlockFile = 23
LEXICAL_BLOCK_FILE
[distinct, scope, file, discriminator]
Namespace = 24
NAMESPACE
[distinct, scope, file, name, line, exportSymbols]
TemplateType = 25
TEMPLATE_TYPE
[distinct, scope, name, type, …]
TemplateValue = 26
TEMPLATE_VALUE
[distinct, scope, name, type, value, …]
GlobalVar = 27
GLOBAL_VAR
[distinct, …]
LocalVar = 28
LOCAL_VAR
[distinct, …]
Expression = 29
EXPRESSION
[distinct, n x element]
ObjcProperty = 30
OBJC_PROPERTY
[distinct, name, file, line, …]
ImportedEntity = 31
IMPORTED_ENTITY
[distinct, tag, scope, entity, line, name]
Module = 32
MODULE
[distinct, scope, name, …]
Macro = 33
MACRO
[distinct, macinfo, line, name, value]
MacroFile = 34
MACRO_FILE
[distinct, macinfo, line, file, …]
Strings = 35
STRINGS
[count, offset] blob([lengths][chars])
GlobalDeclAttachment = 36
GLOBAL_DECL_ATTACHMENT
[valueid, n x [id, mdnode]]
GlobalVarExpr = 37
GLOBAL_VAR_EXPR
[distinct, var, expr]
IndexOffset = 38
INDEX_OFFSET
[offset]
Index = 39
INDEX
[bitpos]
Label = 40
LABEL
[distinct, scope, name, file, line]
StringType = 41
STRING_TYPE
[distinct, name, size, align, ..]
CommonBlock = 44
COMMON_BLOCK
[distinct, scope, name, variable, ..]
GenericSubrange = 45
GENERIC_SUBRANGE
[distinct, count, lo, up, stride]
ArgList = 46
ARG_LIST
[n x [type num, value num]]
AssignId = 47
ASSIGN_ID
[distinct, …]
Trait Implementations§
Source§impl Clone for MetadataCode
impl Clone for MetadataCode
Source§fn clone(&self) -> MetadataCode
fn clone(&self) -> MetadataCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more