[−][src]Struct sn_bindgen::LangC
Implementations
impl LangC
[src]
Compile the header declarations then add the needed #include
s.
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]
&mut self,
fn_decl: &ItemFn,
docs: &str,
name: &str,
module: &[String],
outputs: &mut HashMap<String, String>
) -> Result<(), Error>
Transform a Rust FFI function into a C function decl
Trait Implementations
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]
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<'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]
U: From<T>,
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>,