pub trait ClassLike {
    // Provided methods
    fn unique_name(&self) -> String { ... }
    fn name(&self) -> String { ... }
    fn size(&self) -> u64 { ... }
    fn attributes(&self) -> Attributes<'_>  { ... }
    fn methods(&self) -> Methods<'_>  { ... }
}
Expand description

Trait shared by Structure, Class, [Union] and Interface

Provided Methods§

fn unique_name(&self) -> String

Mangled type name

fn name(&self) -> String

Demangled type name

fn size(&self) -> u64

Size of the type including all its attributes. This size should match the sizeof(...) this type.

fn attributes(&self) -> Attributes<'_>

Iterator over the different crate::pdb::types::Attribute defined in this class-like type

fn methods(&self) -> Methods<'_>

Iterator over the different crate::pdb::types::Method implemented in this class-like type

Implementors§

§

impl ClassLike for Class<'_>

§

impl ClassLike for Interface<'_>

§

impl ClassLike for Structure<'_>

§

impl ClassLike for Union<'_>