[][src]Struct safe_bindgen::LangCSharp

pub struct LangCSharp { /* fields omitted */ }

Implementations

impl LangCSharp[src]

pub fn new() -> Self[src]

pub fn set_lib_name<T: Into<String>>(&mut self, name: T)[src]

Set the name of the native library. This also sets the class name.

pub fn set_interface_section<P, N, C>(
    &mut self,
    path: P,
    namespace: N,
    interface: C
) where
    P: Into<String>,
    N: Into<String>,
    C: Into<String>, 
[src]

Set path, namespace and interface name of the interface section.

pub fn set_functions_section<P, N, C>(
    &mut self,
    path: P,
    namespace: N,
    class: C
) where
    P: Into<String>,
    N: Into<String>,
    C: Into<String>, 
[src]

Set path, namespace and class name of the functions section.

pub fn set_consts_enabled(&mut self, enabled: bool)[src]

Enabl/disable generation of constants.

pub fn set_consts_section<P, N, C>(&mut self, path: P, namespace: N, class: C) where
    P: Into<String>,
    N: Into<String>,
    C: Into<String>, 
[src]

Set path, namespace and class name of the constants section.

pub fn set_types_enabled(&mut self, enabled: bool)[src]

Enabl/disable generation of types.

pub fn set_types_section<P, N>(&mut self, path: P, namespace: N) where
    P: Into<String>,
    N: Into<String>, 
[src]

Set path and namespace of the types section.

pub fn set_utils_enabled(&mut self, enabled: bool)[src]

Enable/disable generation of the utils class.

pub fn set_utils_section<P, N, C>(&mut self, path: P, namespace: N, class: C) where
    P: Into<String>,
    N: Into<String>,
    C: Into<String>, 
[src]

Set path, namespace and class name of the utilities section.

pub fn add_opaque_type<T: Into<String>>(&mut self, name: T)[src]

Add definition of opaque type (type represented by an opaque pointer).

pub fn add_const<T: Display>(&mut self, ty: &str, name: &str, value: T)[src]

Add constant definition.

pub fn reset_filter(&mut self, filter_mode: FilterMode)[src]

Clears the current filter and sets the filter mode.

pub fn filter<T: Into<String>>(&mut self, ident: T)[src]

Add the identifier to the filter. If the filter mode is Blacklist (the default), the identifiers in the filter are ignored. If it is Whitelist, the identifiers not in the filter are ignored.

pub fn blacklist_wrapper_function<T: Into<String>>(&mut self, ident: T)[src]

Do not generate wrapper function for the given function.

pub fn reset_wrapper_function_blacklist(&mut self)[src]

Trait Implementations

impl Default for LangCSharp[src]

Auto Trait Implementations

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<'a, T> Desc<'a, T> for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.