[][src]Struct sn_bindgen::LangC

pub struct LangC { /* fields omitted */ }

Implementations

impl LangC[src]

Compile the header declarations then add the needed #includes.

Currently includes:

  • stdint.h
  • stdbool.h

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.

pub fn add_custom_code(&mut self, code: &str)[src]

Adds manual C code into the top-level header - can be useful for typedefs, like e.g. opaque pointers.

pub fn transform_native_fn(
    &mut self,
    fn_decl: &ItemFn,
    docs: &str,
    name: &str,
    module: &[String],
    outputs: &mut HashMap<String, String>
) -> Result<(), Error>
[src]

Transform a Rust FFI function into a C function decl

Trait Implementations

impl Default for LangC[src]

Auto Trait Implementations

impl RefUnwindSafe for LangC

impl Send for LangC

impl Sync for LangC

impl Unpin for LangC

impl UnwindSafe for LangC

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.