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
Source§fn clone(&self) -> FfiSignature
fn clone(&self) -> FfiSignature
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 moreAuto Trait Implementations§
impl Freeze 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