Enum gimli::AttributeValue
[−]
[src]
#[repr(u64)]pub enum AttributeValue<R: Reader> { Addr(u64), Block(R), Data1([u8; 1]), Data2(([u8; 2], R::Endian)), Data4(([u8; 4], R::Endian)), Data8(([u8; 8], R::Endian)), Sdata(i64), Udata(u64), Exprloc(Expression<R>), Flag(bool), SecOffset(R::Offset), UnitRef(UnitOffset<R::Offset>), DebugInfoRef(DebugInfoOffset<R::Offset>), DebugLineRef(DebugLineOffset<R::Offset>), DebugLocRef(DebugLocOffset<R::Offset>), DebugMacinfoRef(DebugMacinfoOffset<R::Offset>), DebugRangesRef(DebugRangesOffset<R::Offset>), DebugTypesRef(DebugTypeSignature), DebugStrRef(DebugStrOffset<R::Offset>), String(R), Encoding(DwAte), DecimalSign(DwDs), Endianity(DwEnd), Accessibility(DwAccess), Visibility(DwVis), Virtuality(DwVirtuality), Language(DwLang), AddressClass(DwAddr), IdentifierCase(DwId), CallingConvention(DwCc), Inline(DwInl), Ordering(DwOrd), FileIndex(u64), }
The value of an attribute in a DebuggingInformationEntry
.
Variants
Addr(u64)
"Refers to some location in the address space of the described program."
Block(R)
A slice of an arbitrary number of bytes.
Data1([u8; 1])
A one byte constant data value. How to interpret the byte depends on context.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
Data2(([u8; 2], R::Endian))
A two byte constant data value. How to interpret the bytes depends on context.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
Data4(([u8; 4], R::Endian))
A four byte constant data value. How to interpret the bytes depends on context.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
Data8(([u8; 8], R::Endian))
An eight byte constant data value. How to interpret the bytes depends on context.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
Sdata(i64)
A signed integer constant.
Udata(u64)
An unsigned integer constant.
Exprloc(Expression<R>)
"The information bytes contain a DWARF expression (see Section 2.5) or location description (see Section 2.6)."
Flag(bool)
A boolean typically used to describe the presence or absence of another attribute.
SecOffset(R::Offset)
An offset into another section. Which section this is an offset into depends on context.
UnitRef(UnitOffset<R::Offset>)
An offset into the current compilation unit.
DebugInfoRef(DebugInfoOffset<R::Offset>)
An offset into the current .debug_info
section, but possibly a
different compilation unit from the current one.
DebugLineRef(DebugLineOffset<R::Offset>)
An offset into the .debug_line
section.
DebugLocRef(DebugLocOffset<R::Offset>)
An offset into the .debug_loc
section.
DebugMacinfoRef(DebugMacinfoOffset<R::Offset>)
An offset into the .debug_macinfo
section.
DebugRangesRef(DebugRangesOffset<R::Offset>)
An offset into the .debug_ranges
section.
DebugTypesRef(DebugTypeSignature)
A type signature.
DebugStrRef(DebugStrOffset<R::Offset>)
An offset into the .debug_str
section.
String(R)
A slice of bytes representing a string. Does not include a final null byte. Not guaranteed to be UTF-8 or anything like that.
Encoding(DwAte)
The value of a DW_AT_encoding
attribute.
DecimalSign(DwDs)
The value of a DW_AT_decimal_sign
attribute.
Endianity(DwEnd)
The value of a DW_AT_endianity
attribute.
Accessibility(DwAccess)
The value of a DW_AT_accessibility
attribute.
Visibility(DwVis)
The value of a DW_AT_visibility
attribute.
Virtuality(DwVirtuality)
The value of a DW_AT_virtuality
attribute.
Language(DwLang)
The value of a DW_AT_language
attribute.
AddressClass(DwAddr)
The value of a DW_AT_address_class
attribute.
IdentifierCase(DwId)
The value of a DW_AT_identifier_case
attribute.
CallingConvention(DwCc)
The value of a DW_AT_calling_convention
attribute.
Inline(DwInl)
The value of a DW_AT_inline
attribute.
Ordering(DwOrd)
The value of a DW_AT_ordering
attribute.
FileIndex(u64)
An index into the filename entries from the line number information table for the compilation unit containing this value.
Trait Implementations
impl<R: Clone + Reader> Clone for AttributeValue<R> where
R::Endian: Clone,
R::Endian: Clone,
R::Endian: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
[src]
R::Endian: Clone,
R::Endian: Clone,
R::Endian: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
R::Offset: Clone,
fn clone(&self) -> AttributeValue<R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<R: Copy + Reader> Copy for AttributeValue<R> where
R::Endian: Copy,
R::Endian: Copy,
R::Endian: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
[src]
R::Endian: Copy,
R::Endian: Copy,
R::Endian: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
R::Offset: Copy,
impl<R: Debug + Reader> Debug for AttributeValue<R> where
R::Endian: Debug,
R::Endian: Debug,
R::Endian: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
[src]
R::Endian: Debug,
R::Endian: Debug,
R::Endian: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
R::Offset: Debug,
impl<R: Eq + Reader> Eq for AttributeValue<R> where
R::Endian: Eq,
R::Endian: Eq,
R::Endian: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
[src]
R::Endian: Eq,
R::Endian: Eq,
R::Endian: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
R::Offset: Eq,
impl<R: PartialEq + Reader> PartialEq for AttributeValue<R> where
R::Endian: PartialEq,
R::Endian: PartialEq,
R::Endian: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
[src]
R::Endian: PartialEq,
R::Endian: PartialEq,
R::Endian: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
R::Offset: PartialEq,
fn eq(&self, __arg_0: &AttributeValue<R>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AttributeValue<R>) -> bool
[src]
This method tests for !=
.