Struct opencv_binding_generator::Func
source · pub struct Func<'tu, 'ge> { /* private fields */ }
Implementations§
source§impl<'tu, 'ge> Func<'tu, 'ge>
impl<'tu, 'ge> Func<'tu, 'ge>
pub fn new(entity: Entity<'tu>, gen_env: &'ge GeneratorEnv<'tu>) -> Self
pub fn new_ext(
entity: Entity<'tu>,
type_hint: FunctionTypeHint,
name_hint: Option<String>,
gen_env: &'ge GeneratorEnv<'tu>
) -> Self
pub fn set_name_hint(&mut self, name_hint: Option<String>)
pub fn name_hint(&self) -> Option<&str>
pub fn gen_env(&self) -> &'ge GeneratorEnv<'tu>
pub fn type_hint(&self) -> FunctionTypeHint
pub fn kind(&self) -> Kind<'tu, 'ge>
pub fn as_field_accessor(&self) -> Option<Field<'tu, 'ge>>
pub fn as_field_setter(&self) -> Option<Field<'tu, 'ge>>
pub fn constness(&self) -> Constness
pub fn is_abstract(&self) -> bool
pub fn is_generic(&self) -> bool
pub fn is_infallible(&self) -> bool
pub fn is_unsafe(&self) -> bool
pub fn is_default_constructor(&self) -> bool
pub fn is_clone(&self) -> bool
pub fn is_no_discard(&self) -> bool
pub fn is_naked_return(&self) -> bool
pub fn return_type(&self) -> TypeRef<'tu, 'ge>
pub fn has_arguments(&self) -> bool
pub fn clang_arguments(&self) -> Vec<Entity<'tu>> ⓘ
pub fn arguments(&self) -> Vec<Field<'tu, 'ge>> ⓘ
pub fn generated_types(&self) -> Vec<GeneratedType<'tu, 'ge>> ⓘ
pub fn identifier(&self) -> Cow<'_, str>
pub fn func_id(&self) -> FuncId<'_>
Trait Implementations§
source§impl Element for Func<'_, '_>
impl Element for Func<'_, '_>
source§fn is_excluded(&self) -> bool
fn is_excluded(&self) -> bool
true if an element shouldn’t be generated
source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
true if there shouldn’t be any references to that element