pub trait RustElement: Element {
// Required methods
fn rust_module(&self) -> SupportedModule;
fn rust_name(&self, style: NameStyle) -> Cow<'_, str>;
fn rendered_doc_comment(
&self,
comment_marker: &str,
opencv_version: &str,
) -> String;
// Provided methods
fn rust_module_reference(&self) -> Cow<'_, str> { ... }
fn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str> { ... }
}
Required Methods§
fn rust_module(&self) -> SupportedModule
fn rust_name(&self, style: NameStyle) -> Cow<'_, str>
fn rendered_doc_comment( &self, comment_marker: &str, opencv_version: &str, ) -> String
Provided Methods§
fn rust_module_reference(&self) -> Cow<'_, str>
Sourcefn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str>
fn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str>
The very last concrete part of the name in Rust
This might not match rust_name(NameStyle::Declaration)
because some classes in Rust are prefixed with their namespace. E.g.
Detail_Blender
, in this case the rust_leafname()
== Blender
and rust_name(NameStyle::Declaration)
== Detail_Blender
.