pub struct Enum<'tu, 'ge> { /* private fields */ }
Implementations§
Source§impl<'tu, 'ge> Enum<'tu, 'ge>
impl<'tu, 'ge> Enum<'tu, 'ge>
pub fn new(entity: Entity<'tu>, gen_env: &'ge GeneratorEnv<'tu>) -> Self
pub fn new_ext( entity: Entity<'tu>, custom_fullname: impl Into<Rc<str>>, gen_env: &'ge GeneratorEnv<'tu>, ) -> Self
pub fn is_anonymous(&self) -> bool
pub fn as_typedefed(&self) -> Option<Entity<'tu>>
pub fn consts(&self) -> Vec<Const<'tu>>
Trait Implementations§
Source§impl Element for Enum<'_, '_>
impl Element for Enum<'_, '_>
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 RustElement for Enum<'_, '_>
impl RustElement for Enum<'_, '_>
fn rust_module(&self) -> SupportedModule
fn rust_name(&self, style: NameStyle) -> Cow<'_, str>
fn rust_module_reference(&self) -> 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 rust_doc_comment(&self, comment_marker: &str, opencv_version: &str) -> String
Source§impl RustNativeGeneratedElement for Enum<'_, '_>
impl RustNativeGeneratedElement for Enum<'_, '_>
Auto Trait Implementations§
impl<'tu, 'ge> Freeze for Enum<'tu, 'ge>
impl<'tu, 'ge> !RefUnwindSafe for Enum<'tu, 'ge>
impl<'tu, 'ge> !Send for Enum<'tu, 'ge>
impl<'tu, 'ge> !Sync for Enum<'tu, 'ge>
impl<'tu, 'ge> Unpin for Enum<'tu, 'ge>
impl<'tu, 'ge> !UnwindSafe for Enum<'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