MetadataCode

Enum MetadataCode 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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

Source§

fn clone(&self) -> MetadataCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MetadataCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<u8> for MetadataCode

Source§

type Error = TryFromPrimitiveError<MetadataCode>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for MetadataCode

Source§

impl Copy for MetadataCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.