[][src]Struct opencv_binding_generator::Func

pub struct Func<'tu, 'g> { /* fields omitted */ }

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]

pub fn rust_generate_funcs(
    fns: impl IntoIterator<Item = &'g Func<'tu, 'g>>,
    opencv_version: &str
) -> String where
    'tu: 'g, 
[src]

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]

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]

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]

pub fn identifier(&self) -> Cow<str>[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]

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, 

impl<'tu, 'g> !UnwindSafe for Func<'tu, 'g>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.