Trait lief::pdb::types::PdbType

pub trait PdbType {
    // Provided methods
    fn size(&self) -> Option<u64> { ... }
    fn name(&self) -> Option<String> { ... }
    fn to_decl(&self) -> String { ... }
    fn to_decl_with_opt(&self, opt: &DeclOpt) -> String { ... }
}

Provided Methods§

fn size(&self) -> Option<u64>

Size of the type. This size should match the value of sizeof(...) applied to this type.

fn name(&self) -> Option<String>

Type’s name (if present)

fn to_decl(&self) -> String

Generates a C/C++ definition for this type

fn to_decl_with_opt(&self, opt: &DeclOpt) -> String

Generates a C/C++ definition for this type with the given configuration

Implementors§

§

impl PdbType for Type<'_>

§

impl PdbType for Array<'_>

§

impl PdbType for BitField<'_>

§

impl PdbType for Class<'_>

§

impl PdbType for Enum<'_>

§

impl PdbType for Function<'_>

§

impl PdbType for Generic<'_>

§

impl PdbType for Interface<'_>

§

impl PdbType for Modifier<'_>

§

impl PdbType for Pointer<'_>

§

impl PdbType for Simple<'_>

§

impl PdbType for Structure<'_>

§

impl PdbType for Union<'_>