Struct opencv_binding_generator::Func
source · pub struct Func<'tu, 'ge> { /* private fields */ }
Implementations
sourceimpl<'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 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
sourceimpl Element for Func<'_, '_>
impl Element for Func<'_, '_>
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_name(&self, style: CppNameStyle) -> Cow<'_, str>
fn rust_module(&self) -> Cow<'_, str>
fn rust_name(&self, style: NameStyle) -> Cow<'_, str>
fn rust_leafname(&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 rust_namespace(&self) -> Cow<'_, str>
Auto Trait Implementations
impl<'tu, 'ge> !RefUnwindSafe for Func<'tu, 'ge>
impl<'tu, 'ge> !Send for Func<'tu, 'ge>
impl<'tu, 'ge> !Sync for Func<'tu, 'ge>
impl<'tu, 'ge> Unpin for Func<'tu, 'ge>where
'tu: 'ge,
impl<'tu, 'ge> !UnwindSafe for Func<'tu, 'ge>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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