pub enum FfiNativeType {
Show 19 variants
Void,
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
F32,
F64,
Bool,
SizeT,
CStr,
Ptr(Box<FfiNativeType>),
OpaquePtr,
LeanObject,
Struct(String, Vec<(String, FfiNativeType)>),
FnPtr(Vec<FfiNativeType>, Box<FfiNativeType>),
}Expand description
Native C type for FFI boundaries.
Variants§
Void
void
I8
int8_t
I16
int16_t
I32
int32_t
I64
int64_t
U8
uint8_t
U16
uint16_t
U32
uint32_t
U64
uint64_t
F32
float
F64
double
Bool
bool (C99 _Bool)
SizeT
size_t
CStr
char* (C string)
Ptr(Box<FfiNativeType>)
Generic pointer T*
OpaquePtr
Opaque pointer void*
LeanObject
lean_object*
Struct(String, Vec<(String, FfiNativeType)>)
Struct with named fields.
FnPtr(Vec<FfiNativeType>, Box<FfiNativeType>)
Function pointer.
Trait Implementations§
Source§impl Clone for FfiNativeType
impl Clone for FfiNativeType
Source§fn clone(&self) -> FfiNativeType
fn clone(&self) -> FfiNativeType
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 FfiNativeType
impl Debug for FfiNativeType
Source§impl Display for FfiNativeType
impl Display for FfiNativeType
Source§impl Hash for FfiNativeType
impl Hash for FfiNativeType
Source§impl PartialEq for FfiNativeType
impl PartialEq for FfiNativeType
impl Eq for FfiNativeType
impl StructuralPartialEq for FfiNativeType
Auto Trait Implementations§
impl Freeze for FfiNativeType
impl RefUnwindSafe for FfiNativeType
impl Send for FfiNativeType
impl Sync for FfiNativeType
impl Unpin for FfiNativeType
impl UnsafeUnpin for FfiNativeType
impl UnwindSafe for FfiNativeType
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