Struct opencv_binding_generator::Class 
source · [−]pub struct Class<'tu, 'ge> { /* private fields */ }Implementations
sourceimpl<'tu, 'ge> Class<'tu, 'ge>
 
impl<'tu, 'ge> Class<'tu, 'ge>
pub fn new(entity: Entity<'tu>, gen_env: &'ge GeneratorEnv<'tu>) -> Self
pub fn new_ext(
    entity: Entity<'tu>,
    custom_fullname: String,
    gen_env: &'ge GeneratorEnv<'tu>
) -> Self
pub fn kind(&self) -> Kind
pub fn type_ref(&self) -> TypeRef<'tu, 'ge>
pub fn detect_class_simplicity(&self) -> bool
pub fn as_template(&self) -> Option<Class<'tu, 'ge>>
pub fn is_simple(&self) -> bool
pub fn is_boxed(&self) -> bool
pub fn is_template(&self) -> bool
pub fn is_template_specialization(&self) -> bool
pub fn is_abstract(&self) -> bool
pub fn is_polymorphic(&self) -> bool
pub fn is_trait(&self) -> bool
pub fn is_by_ptr(&self) -> bool
pub fn has_clone(&self) -> bool
pub fn rust_trait_name(
    &self,
    style: NameStyle,
    constness: Constness
) -> Cow<'_, str>
pub fn has_bases(&self) -> bool
pub fn bases(&self) -> Vec<Class<'tu, 'ge>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn all_bases(&self) -> HashSet<Class<'tu, 'ge>>
pub fn descendants(&self) -> impl Iterator<Item = Class<'tu, 'ge>>
pub fn has_methods(&self) -> bool
pub fn for_each_method(
    &self,
    predicate: impl FnMut(Func<'tu, 'ge>) -> bool
) -> bool
pub fn methods(&self, constness_filter: Option<Constness>) -> Vec<Func<'tu, 'ge>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn has_fields(&self) -> bool
pub fn for_each_field(
    &self,
    predicate: impl FnMut(Field<'tu, 'ge>) -> bool
) -> bool
pub fn fields(&self) -> Vec<Field<'tu, 'ge>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn consts(&self) -> Vec<Const<'tu>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn field_methods<'f>(
    &self,
    fields: impl Iterator<Item = &'f Field<'tu, 'ge>>,
    constness_filter: Option<Constness>
) -> Vec<Func<'tu, 'ge>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator,  where
    'tu: 'f,
    'ge: 'f, 
A: Allocator,
pub fn is_definition(&self) -> bool
pub fn dependent_types(&self) -> Vec<DependentType<'tu, 'ge>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
Trait Implementations
sourceimpl Element for Class<'_, '_>
 
impl Element for Class<'_, '_>
sourcefn is_excluded(&self) -> bool
 
fn is_excluded(&self) -> bool
true if an element shouldn’t be generated
sourcefn is_ignored(&self) -> bool
 
fn is_ignored(&self) -> bool
true if there shouldn’t be any references to that element
fn is_system(&self) -> bool
fn is_public(&self) -> bool
fn usr(&self) -> Cow<'_, str>
fn rendered_doc_comment_with_prefix(
    &self,
    prefix: &str,
    opencv_version: &str
) -> String
fn cpp_namespace(&self) -> Cow<'_, str>
fn cpp_localname(&self) -> Cow<'_, str>
fn cpp_fullname(&self) -> Cow<'_, str>
fn rust_module(&self) -> Cow<'_, str>
fn rust_leafname(&self, _fish_style: FishStyle) -> Cow<'_, str>
fn rust_localname(&self, fish_style: FishStyle) -> Cow<'_, str>
fn update_debug_struct<'dref, 'a, 'b>(
    &self,
    struct_debug: &'dref mut DebugStruct<'a, 'b>
) -> &'dref mut DebugStruct<'a, 'b>
fn rendered_doc_comment(&self, opencv_version: &str) -> String
fn cpp_name(&self, style: NameStyle) -> Cow<'_, str>
fn rust_namespace(&self) -> Cow<'_, str>
fn rust_name(&self, style: NameStyle) -> Cow<'_, str>
fn rust_fullname(&self, fish_style: FishStyle) -> Cow<'_, str>
impl Eq for Class<'_, '_>
Auto Trait Implementations
impl<'tu, 'ge> !RefUnwindSafe for Class<'tu, 'ge>
impl<'tu, 'ge> !Send for Class<'tu, 'ge>
impl<'tu, 'ge> !Sync for Class<'tu, 'ge>
impl<'tu, 'ge> Unpin for Class<'tu, 'ge> where
    'tu: 'ge, 
impl<'tu, 'ge> !UnwindSafe for Class<'tu, 'ge>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more