pub enum NameTypeUnit<T> {
Local(DebugInfoOffset<T>),
Foreign(DebugTypeSignature),
}Expand description
A reference to a type unit.
This is the result of looking up a type unit index obtained from a DW_IDX_type_unit
attribute.
Variants§
Local(DebugInfoOffset<T>)
The offset of a local type unit in the .debug_info section.
Foreign(DebugTypeSignature)
The type signature of a foreign type unit.
Trait Implementations§
Source§impl<T: Clone> Clone for NameTypeUnit<T>
impl<T: Clone> Clone for NameTypeUnit<T>
Source§fn clone(&self) -> NameTypeUnit<T>
fn clone(&self) -> NameTypeUnit<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for NameTypeUnit<T>
impl<T: Debug> Debug for NameTypeUnit<T>
Source§impl<T: PartialEq> PartialEq for NameTypeUnit<T>
impl<T: PartialEq> PartialEq for NameTypeUnit<T>
impl<T: Copy> Copy for NameTypeUnit<T>
impl<T: Eq> Eq for NameTypeUnit<T>
impl<T> StructuralPartialEq for NameTypeUnit<T>
Auto Trait Implementations§
impl<T> Freeze for NameTypeUnit<T>where
T: Freeze,
impl<T> RefUnwindSafe for NameTypeUnit<T>where
T: RefUnwindSafe,
impl<T> Send for NameTypeUnit<T>where
T: Send,
impl<T> Sync for NameTypeUnit<T>where
T: Sync,
impl<T> Unpin for NameTypeUnit<T>where
T: Unpin,
impl<T> UnsafeUnpin for NameTypeUnit<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NameTypeUnit<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.