pub struct FfiFunction {
pub c_name: String,
pub seq_name: String,
pub stack_effect: String,
pub args: Vec<FfiArg>,
pub return_spec: Option<FfiReturn>,
}Expand description
A function binding in an FFI manifest
Fields§
§c_name: StringC function name (e.g., “sqlite3_open”)
seq_name: StringSeq word name (e.g., “db-open”)
stack_effect: StringStack effect annotation (e.g., “( String – String )”)
args: Vec<FfiArg>Function arguments
return_spec: Option<FfiReturn>Return value specification
Implementations§
Trait Implementations§
Source§impl Clone for FfiFunction
impl Clone for FfiFunction
Source§fn clone(&self) -> FfiFunction
fn clone(&self) -> FfiFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FfiFunction
impl Debug for FfiFunction
Source§impl<'de> Deserialize<'de> for FfiFunction
impl<'de> Deserialize<'de> for FfiFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FfiFunction
impl RefUnwindSafe for FfiFunction
impl Send for FfiFunction
impl Sync for FfiFunction
impl Unpin for FfiFunction
impl UnwindSafe for FfiFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more