pub enum FfiType {
Int,
String,
Ptr,
Void,
}Expand description
FFI type mapping for C interop
Variants§
Int
C int/long mapped to Seq Int (i64)
String
C char* mapped to Seq String
Ptr
C void* as raw pointer (represented as Int)
Void
C void - no return value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FfiType
impl<'de> Deserialize<'de> for FfiType
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
impl StructuralPartialEq for FfiType
Auto Trait Implementations§
impl Freeze for FfiType
impl RefUnwindSafe for FfiType
impl Send for FfiType
impl Sync for FfiType
impl Unpin for FfiType
impl UnwindSafe for FfiType
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