[]Struct symbolic::debuginfo::dwarf::gimli::read::AttributeSpecification

pub struct AttributeSpecification { /* fields omitted */ }

The description of an attribute in an abbreviated type. It is a pair of name and form.

Implementations

impl AttributeSpecification

pub fn new(
    name: DwAt,
    form: DwForm,
    implicit_const_value: Option<i64>
) -> AttributeSpecification

Construct a new AttributeSpecification from the given name and form and implicit const value.

pub fn name(&self) -> DwAt

Get the attribute's name.

pub fn form(&self) -> DwForm

Get the attribute's form.

pub fn implicit_const_value(&self) -> Option<i64>

Get the attribute's implicit const value.

pub fn size<R>(
    &self,
    header: &UnitHeader<R, <R as Reader>::Offset>
) -> Option<usize> where
    R: Reader

Return the size of the attribute, in bytes.

Note that because some attributes are variably sized, the size cannot always be known without parsing, in which case we return None.

Trait Implementations

impl Clone for AttributeSpecification

impl Copy for AttributeSpecification

impl Debug for AttributeSpecification

impl Eq for AttributeSpecification

impl PartialEq<AttributeSpecification> for AttributeSpecification

impl StructuralEq for AttributeSpecification

impl StructuralPartialEq for AttributeSpecification

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.