[−][src]Struct ffishim::Function
Derived from an ItemFn
to generate its equivalent wrapper function.
The ToTokens
implementation of this structure generates the code for the wrapper around the
API's functions. This API performs all structure transformation required to obtain clean types
in the rust code and return the FFI types back.
Fields
ffi_name: Ident
ffi_args: Vec<FnArg>
ffi_output: ReturnType
call_expr: Expr
Implementations
impl Function
[src]
pub fn from_item_fn(ifn: &ItemFn) -> Self
[src]
Trait Implementations
impl Debug for Function
[src]
impl ToTokens for Function
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_token_stream(&self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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> Spanned for T where
T: Spanned + ?Sized,
[src]
T: Spanned + ?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>,