Skip to main content

ClassLike

Trait ClassLike 

pub trait ClassLike {
    // Provided methods
    fn unique_name(&self) -> String { ... }
    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 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl ClassLike for Class<'_>

§

impl ClassLike for Interface<'_>

§

impl ClassLike for Structure<'_>

§

impl ClassLike for Union<'_>