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_module_reference(&self) -> Cow<'_, str> { ... }
fn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str> { ... }
fn rendered_doc_comment(&self, opencv_version: &str) -> String { ... }
}
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_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
.