pub struct FfiSignature {
pub params: Vec<FfiType>,
pub ret_type: Box<FfiType>,
}Expand description
FFI function signature.
Fields§
§params: Vec<FfiType>Parameter types.
ret_type: Box<FfiType>Return type.
Implementations§
Source§impl FfiSignature
impl FfiSignature
Sourcepub fn matches_expr(&self, expr: &Expr) -> bool
pub fn matches_expr(&self, expr: &Expr) -> bool
Check if this signature is valid for a given expression type.
Trait Implementations§
Source§impl Clone for FfiSignature
impl Clone for FfiSignature
Auto Trait Implementations§
impl Forget for FfiSignature
impl Freeze for FfiSignature
impl Move for FfiSignature
impl RefUnwindSafe for FfiSignature
impl Send for FfiSignature
impl Sync for FfiSignature
impl Unpin for FfiSignature
impl UnsafeUnpin for FfiSignature
impl UnwindSafe for FfiSignature
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