[−][src]Struct opencv_binding_generator::Func
Implementations
impl<'tu, 'g> Func<'tu, 'g>
[src]
pub fn new(entity: Entity<'tu>, gen_env: &'g GeneratorEnv<'tu>) -> Self
[src]
pub fn new_ext(
entity: Entity<'tu>,
type_hint: FunctionTypeHint,
name_hint: Option<&'g str>,
gen_env: &'g GeneratorEnv<'tu>
) -> Self
[src]
entity: Entity<'tu>,
type_hint: FunctionTypeHint,
name_hint: Option<&'g str>,
gen_env: &'g GeneratorEnv<'tu>
) -> Self
pub fn rust_generate_funcs(
fns: impl IntoIterator<Item = &'g Func<'tu, 'g>>,
opencv_version: &str
) -> String where
'tu: 'g,
[src]
fns: impl IntoIterator<Item = &'g Func<'tu, 'g>>,
opencv_version: &str
) -> String where
'tu: 'g,
pub fn rust_disambiguate_names(
fns: impl IntoIterator<Item = &'g Func<'tu, 'g>>
) -> impl Iterator<Item = (String, &'g Func<'tu, 'g>)> where
'tu: 'g,
[src]
fns: impl IntoIterator<Item = &'g Func<'tu, 'g>>
) -> impl Iterator<Item = (String, &'g Func<'tu, 'g>)> where
'tu: 'g,
pub fn as_constructor(&self) -> Option<Class<'tu, 'g>>
[src]
pub fn as_instance_method(&self) -> Option<Class<'tu, 'g>>
[src]
pub fn as_static_method(&self) -> Option<Class<'tu, 'g>>
[src]
pub fn as_field_accessor(&self) -> Option<Field<'tu, 'g>>
[src]
pub fn as_field_setter(&self) -> Option<Field<'tu, 'g>>
[src]
pub fn as_conversion_method(&self) -> Option<Class<'tu, 'g>>
[src]
pub fn as_operator(&self) -> Option<(Option<Class<'tu, 'g>>, OperatorKind)>
[src]
pub fn is_const(&self) -> bool
[src]
pub fn is_abstract(&self) -> bool
[src]
pub fn is_generic(&self) -> bool
[src]
pub fn as_specialized(
&self
) -> Option<&'static HashMap<&'static str, &'static str>>
[src]
&self
) -> Option<&'static HashMap<&'static str, &'static str>>
pub fn return_type(&self) -> TypeRef<'tu, 'g>
[src]
pub fn arguments(&self) -> Vec<Field<'tu, 'g>>
[src]
pub fn dependent_types(&self) -> Vec<Box<dyn GeneratedElement + 'g>>
[src]
pub fn gen_rust_with_name(&self, name: &str, opencv_version: &str) -> String
[src]
Trait Implementations
impl<'tu, 'g> Clone for Func<'tu, 'g>
[src]
impl<'_, '_> Debug for Func<'_, '_>
[src]
impl<'_, '_> Display for Func<'_, '_>
[src]
impl<'_, '_> Element for Func<'_, '_>
[src]
fn is_excluded(&self) -> bool
[src]
fn is_ignored(&self) -> bool
[src]
fn is_system(&self) -> bool
[src]
fn is_public(&self) -> bool
[src]
fn identifier(&self) -> Cow<str>
[src]
fn usr(&self) -> Cow<str>
[src]
fn rendered_doc_comment_with_prefix(
&self,
prefix: &str,
opencv_version: &str
) -> String
[src]
&self,
prefix: &str,
opencv_version: &str
) -> String
fn cpp_namespace(&self) -> Cow<str>
[src]
fn cpp_localname(&self) -> Cow<str>
[src]
fn rust_module(&self) -> Cow<str>
[src]
fn rust_leafname(&self) -> Cow<str>
[src]
fn rust_localname(&self) -> Cow<str>
[src]
fn update_debug_struct<'dref, 'a, 'b>(
&self,
struct_debug: &'dref mut DebugStruct<'a, 'b>
) -> &'dref mut DebugStruct<'a, 'b>
[src]
&self,
struct_debug: &'dref mut DebugStruct<'a, 'b>
) -> &'dref mut DebugStruct<'a, 'b>
fn rendered_doc_comment(&self, opencv_version: &str) -> String
[src]
fn cpp_name(&self, full: bool) -> Cow<str>
[src]
fn cpp_fullname(&self) -> Cow<str>
[src]
fn rust_namespace(&self) -> Cow<str>
[src]
fn rust_name(&self, full: bool) -> Cow<str>
[src]
fn rust_fullname(&self) -> Cow<str>
[src]
impl<'tu, '_> EntityElement<'tu> for Func<'tu, '_>
[src]
impl<'_, '_> GeneratedElement for Func<'_, '_>
[src]
Auto Trait Implementations
impl<'tu, 'g> !RefUnwindSafe for Func<'tu, 'g>
impl<'tu, 'g> !Send for Func<'tu, 'g>
impl<'tu, 'g> !Sync for Func<'tu, 'g>
impl<'tu, 'g> Unpin for Func<'tu, 'g> where
'tu: 'g,
'tu: 'g,
impl<'tu, 'g> !UnwindSafe for Func<'tu, 'g>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,