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 { ... }
}