FFIStruct

Trait FFIStruct 

Source
pub trait FFIStruct: Default {
    type RustType;

    // Required methods
    fn iter_members(&self) -> IntoIter<(&'static str, MemberInfo)>;
    fn iter_all_members(&self) -> IntoIter<(&'static str, MemberInfo)>;
}
Expand description

FFIStruct trait

Required Associated Types§

Source

type RustType

The original Xxx_Rust type

Required Methods§

Source

fn iter_members(&self) -> IntoIter<(&'static str, MemberInfo)>

Get field info (excluding padding)

Source

fn iter_all_members(&self) -> IntoIter<(&'static str, MemberInfo)>

Get all field info (including padding)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§