pub trait Element: Debug {
    // Required methods
    fn is_system(&self) -> bool;
    fn is_public(&self) -> bool;
    fn usr(&self) -> Cow<'_, str>;
    fn cpp_namespace(&self) -> Cow<'_, str>;
    fn cpp_name(&self, style: CppNameStyle) -> Cow<'_, str>;

    // Provided methods
    fn update_debug_struct<'dref, 'a, 'b>(
        &self,
        struct_debug: &'dref mut DebugStruct<'a, 'b>
    ) -> &'dref mut DebugStruct<'a, 'b> { ... }
    fn is_excluded(&self) -> bool { ... }
    fn is_ignored(&self) -> bool { ... }
}

Required Methods§

source

fn is_system(&self) -> bool

source

fn is_public(&self) -> bool

source

fn usr(&self) -> Cow<'_, str>

source

fn cpp_namespace(&self) -> Cow<'_, str>

source

fn cpp_name(&self, style: CppNameStyle) -> Cow<'_, str>

Provided Methods§

source

fn update_debug_struct<'dref, 'a, 'b>( &self, struct_debug: &'dref mut DebugStruct<'a, 'b> ) -> &'dref mut DebugStruct<'a, 'b>

source

fn is_excluded(&self) -> bool

true if an element shouldn’t be generated

source

fn is_ignored(&self) -> bool

true if there shouldn’t be any references to that element

Implementations on Foreign Types§

source§

impl Element for Entity<'_>

source§

fn is_system(&self) -> bool

source§

fn is_public(&self) -> bool

source§

fn usr(&self) -> Cow<'_, str>

source§

fn cpp_namespace(&self) -> Cow<'_, str>

source§

fn cpp_name(&self, style: CppNameStyle) -> Cow<'_, str>

Implementors§

source§

impl Element for Class<'_, '_>

source§

impl Element for Const<'_>

source§

impl Element for Enum<'_>

source§

impl Element for Func<'_, '_>

source§

impl Element for Typedef<'_, '_>