pub trait RustElement: Element {
    // Required methods
    fn rust_module(&self) -> Cow<'_, str>;
    fn rust_name(&self, style: NameStyle) -> Cow<'_, str>;
    fn rendered_doc_comment_with_prefix(
        &self,
        prefix: &str,
        opencv_version: &str
    ) -> String;

    // Provided methods
    fn rust_namespace(&self) -> Cow<'_, str> { ... }
    fn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str> { ... }
    fn rendered_doc_comment(&self, opencv_version: &str) -> String { ... }
}

Required Methods§

source

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

source

fn rust_name(&self, style: NameStyle) -> Cow<'_, str>

source

fn rendered_doc_comment_with_prefix( &self, prefix: &str, opencv_version: &str ) -> String

Provided Methods§

source

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

source

fn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str>

source

fn rendered_doc_comment(&self, opencv_version: &str) -> String

Implementors§

source§

impl RustElement for Class<'_, '_>

source§

impl RustElement for Const<'_>

source§

impl RustElement for Enum<'_>

source§

impl RustElement for Func<'_, '_>

source§

impl RustElement for Typedef<'_, '_>