pub struct FfiArg {
pub arg_type: FfiType,
pub pass: PassMode,
pub value: Option<String>,
}Expand description
An argument to an FFI function
Fields§
§arg_type: FfiTypeThe type of the argument
pass: PassModeHow to pass the argument to C
value: Option<String>Fixed value (for parameters like NULL callbacks)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FfiArg
impl<'de> Deserialize<'de> for FfiArg
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
Auto Trait Implementations§
impl Freeze for FfiArg
impl RefUnwindSafe for FfiArg
impl Send for FfiArg
impl Sync for FfiArg
impl Unpin for FfiArg
impl UnwindSafe for FfiArg
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