Struct opencv_binding_generator::Typedef
source · pub struct Typedef<'tu, 'ge> { /* private fields */ }
Implementations§
source§impl<'tu, 'ge> Typedef<'tu, 'ge>
impl<'tu, 'ge> Typedef<'tu, 'ge>
sourcepub fn try_new(
entity: Entity<'tu>,
gen_env: &'ge GeneratorEnv<'tu>
) -> NewTypedefResult<'tu, 'ge>
pub fn try_new( entity: Entity<'tu>, gen_env: &'ge GeneratorEnv<'tu> ) -> NewTypedefResult<'tu, 'ge>
Create a corresponding type from EntityKind::TypedefDecl or EntityKind::TypeAliasDecl.
Sometimes the actual type is not a TypeDef
, but a Class
for example in case of:
typedef struct
{
int x, y, w, h;
float score;
} Box;
pub fn type_ref(&self) -> TypeRef<'tu, 'ge>
pub fn underlying_type_ref(&self) -> TypeRef<'tu, 'ge>
pub fn generated_types(&self) -> Vec<GeneratedType<'tu, 'ge>>
Trait Implementations§
source§impl Element for Typedef<'_, '_>
impl Element for Typedef<'_, '_>
fn exclude_kind(&self) -> ExcludeKind
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>
fn update_debug_struct<'dref, 'a, 'b>( &self, struct_debug: &'dref mut DebugStruct<'a, 'b> ) -> &'dref mut DebugStruct<'a, 'b>
source§impl PartialEq for Typedef<'_, '_>
impl PartialEq for Typedef<'_, '_>
source§impl RustElement for Typedef<'_, '_>
impl RustElement for Typedef<'_, '_>
fn rust_module(&self) -> Cow<'_, str>
fn rust_name(&self, style: NameStyle) -> Cow<'_, str>
source§fn 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 Read more
fn rendered_doc_comment( &self, comment_marker: &str, opencv_version: &str ) -> String
fn rust_module_reference(&self) -> Cow<'_, str>
source§impl RustNativeGeneratedElement for Typedef<'_, '_>
impl RustNativeGeneratedElement for Typedef<'_, '_>
Auto Trait Implementations§
impl<'tu, 'ge> Freeze for Typedef<'tu, 'ge>
impl<'tu, 'ge> !RefUnwindSafe for Typedef<'tu, 'ge>
impl<'tu, 'ge> !Send for Typedef<'tu, 'ge>
impl<'tu, 'ge> !Sync for Typedef<'tu, 'ge>
impl<'tu, 'ge> Unpin for Typedef<'tu, 'ge>
impl<'tu, 'ge> !UnwindSafe for Typedef<'tu, 'ge>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more