pub enum UnitType<Offset> where
Offset: ReaderOffset, {
Compilation,
Type {
type_signature: DebugTypeSignature,
type_offset: UnitOffset<Offset>,
},
Partial,
Skeleton(DwoId),
SplitCompilation(DwoId),
SplitType {
type_signature: DebugTypeSignature,
type_offset: UnitOffset<Offset>,
},
}
Expand description
This enum specifies the type of the unit and any type specific data carried in the header (e.g. the type signature/type offset of a type unit).
Variants
Compilation
In DWARF5, a unit with type DW_UT_compile
. In previous DWARF versions,
any unit appearing in the .debug_info section.
Type
Fields
type_signature: DebugTypeSignature
The unique type signature for this type unit.
type_offset: UnitOffset<Offset>
The offset within this type unit where the type is defined.
In DWARF5, a unit with type DW_UT_type
. In DWARF4, any unit appearing
in the .debug_types section.
Partial
A unit with type DW_UT_partial
. The root DIE of this unit should be a
DW_TAG_partial_unit
.
Skeleton(DwoId)
A unit with type DW_UT_skeleton
. The enclosed dwo_id can be used to
link this with the corresponding SplitCompilation
unit in a dwo file.
NB: The non-standard GNU split DWARF extension to DWARF 4 will instead
be a Compilation
unit with the dwo_id present as an attribute on the
root DIE.
SplitCompilation(DwoId)
A unit with type DW_UT_split_compile
. The enclosed dwo_id can be used to
link this with the corresponding Skeleton
unit in the original binary.
NB: The non-standard GNU split DWARF extension to DWARF 4 will instead
be a Compilation
unit with the dwo_id present as an attribute on the
root DIE.
SplitType
Fields
type_signature: DebugTypeSignature
The unique type signature for this type unit.
type_offset: UnitOffset<Offset>
The offset within this type unit where the type is defined.
A unit with type DW_UT_split_type
. A split type unit is identical to a
conventional type unit except for the section in which it appears.
Trait Implementations
sourceimpl<Offset: Clone> Clone for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset: Clone> Clone for UnitType<Offset> where
Offset: ReaderOffset,
sourceimpl<Offset: Debug> Debug for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset: Debug> Debug for UnitType<Offset> where
Offset: ReaderOffset,
sourceimpl<Offset: PartialEq> PartialEq<UnitType<Offset>> for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset: PartialEq> PartialEq<UnitType<Offset>> for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset: Copy> Copy for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset: Eq> Eq for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset> StructuralEq for UnitType<Offset> where
Offset: ReaderOffset,
impl<Offset> StructuralPartialEq for UnitType<Offset> where
Offset: ReaderOffset,
Auto Trait Implementations
impl<Offset> RefUnwindSafe for UnitType<Offset> where
Offset: RefUnwindSafe,
impl<Offset> Send for UnitType<Offset> where
Offset: Send,
impl<Offset> Sync for UnitType<Offset> where
Offset: Sync,
impl<Offset> Unpin for UnitType<Offset> where
Offset: Unpin,
impl<Offset> UnwindSafe for UnitType<Offset> where
Offset: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more