Trait Element

Source
pub trait Element: Debug {
    // Required methods
    fn is_system(&self) -> bool;
    fn is_public(&self) -> bool;
    fn doc_comment(&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 exclude_kind(&self) -> ExcludeKind { ... }
}

Required Methods§

Source

fn is_system(&self) -> bool

Source

fn is_public(&self) -> bool

Source

fn doc_comment(&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 exclude_kind(&self) -> ExcludeKind

Implementations on Foreign Types§

Source§

impl Element for Entity<'_>

Source§

fn is_system(&self) -> bool

Source§

fn is_public(&self) -> bool

Source§

fn doc_comment(&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 Func<'_, '_>

Source§

impl Element for Typedef<'_, '_>

Source§

impl Element for Const<'_>

Source§

impl Element for Enum<'_>