Trait lief::dwarf::types::DwarfType

pub trait DwarfType {
    // Provided methods
    fn name(&self) -> Result<String, Error> { ... }
    fn size(&self) -> Result<u64, Error> { ... }
    fn location(&self) -> DebugLocation { ... }
    fn is_unspecified(&self) -> bool { ... }
    fn scope(&self) -> Option<Scope<'_>> { ... }
}
Expand description

Generic trait shared by all DWARF types

Provided Methods§

fn name(&self) -> Result<String, Error>

Return the type’s name using either DW_AT_name or DW_AT_picture_string (if any)

fn size(&self) -> Result<u64, Error>

Return the size of the type or an error if it can’t be computed.

This size should match the equivalent of sizeof(Type).

fn location(&self) -> DebugLocation

Return the debug location where this type is defined.

fn is_unspecified(&self) -> bool

Whether this type is a DW_TAG_unspecified_type.

fn scope(&self) -> Option<Scope<'_>>

The scope in which this function is defined

Implementors§

§

impl DwarfType for Type<'_>

§

impl DwarfType for Array<'_>

§

impl DwarfType for Atomic<'_>

§

impl DwarfType for Base<'_>

§

impl DwarfType for Class<'_>

§

impl DwarfType for Coarray<'_>

§

impl DwarfType for Const<'_>

§

impl DwarfType for Dynamic<'_>

§

impl DwarfType for Enum<'_>

§

impl DwarfType for File<'_>

§

impl DwarfType for Generic<'_>

§

impl DwarfType for Immutable<'_>

§

impl DwarfType for Interface<'_>

§

impl DwarfType for Packed<'_>

§

impl DwarfType for Pointer<'_>

§

impl DwarfType for PointerToMember<'_>

§

impl DwarfType for RValueReference<'_>

§

impl DwarfType for Reference<'_>

§

impl DwarfType for Restrict<'_>

§

impl DwarfType for SetTy<'_>

§

impl DwarfType for Shared<'_>

§

impl DwarfType for StringTy<'_>

§

impl DwarfType for Structure<'_>

§

impl DwarfType for Subroutine<'_>

§

impl DwarfType for TemplateAlias<'_>

§

impl DwarfType for Thrown<'_>

§

impl DwarfType for Typedef<'_>

§

impl DwarfType for Union<'_>

§

impl DwarfType for Volatile<'_>