pub struct NameAttribute<R: Reader> { /* private fields */ }Expand description
A parsed attribute for a NameEntry.
Implementations§
Source§impl<R: Reader> NameAttribute<R>
impl<R: Reader> NameAttribute<R>
Sourcepub fn value(&self) -> &NameAttributeValue<R>
pub fn value(&self) -> &NameAttributeValue<R>
Get the attribute value.
Interpretation of this value depends on the name and form.
Sourcepub fn compile_unit(
&self,
names: &NameIndex<R>,
) -> Result<DebugInfoOffset<R::Offset>>
pub fn compile_unit( &self, names: &NameIndex<R>, ) -> Result<DebugInfoOffset<R::Offset>>
Get the value of a DW_IDX_compile_unit attribute.
Sourcepub fn type_unit(&self, names: &NameIndex<R>) -> Result<NameTypeUnit<R::Offset>>
pub fn type_unit(&self, names: &NameIndex<R>) -> Result<NameTypeUnit<R::Offset>>
Get the value of a DW_IDX_type_unit attribute.
Sourcepub fn die_offset(&self) -> Result<UnitOffset<R::Offset>>
pub fn die_offset(&self) -> Result<UnitOffset<R::Offset>>
Get the value of a DW_IDX_die_offset attribute.
Trait Implementations§
Source§impl<R: Clone + Reader> Clone for NameAttribute<R>
impl<R: Clone + Reader> Clone for NameAttribute<R>
Source§fn clone(&self) -> NameAttribute<R>
fn clone(&self) -> NameAttribute<R>
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 moreimpl<R: Copy + Reader> Copy for NameAttribute<R>
impl<R: Eq + Reader> Eq for NameAttribute<R>
impl<R: Reader> StructuralPartialEq for NameAttribute<R>
Auto Trait Implementations§
impl<R> Freeze for NameAttribute<R>
impl<R> RefUnwindSafe for NameAttribute<R>
impl<R> Send for NameAttribute<R>
impl<R> Sync for NameAttribute<R>
impl<R> Unpin for NameAttribute<R>
impl<R> UnsafeUnpin for NameAttribute<R>
impl<R> UnwindSafe for NameAttribute<R>
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.