Struct libffi::middle::Arg
[−]
[src]
#[repr(C)]pub struct Arg(_);
Contains an untyped pointer to a function argument.
When calling a function via a CIF, each argument
must be passed as a C void*. Wrapping the argument in the Arg
struct accomplishes the necessary coercion.
Methods
impl Arg[src]
pub fn new<T>(r: &T) -> Self[src]
Coerces an argument reference into the Arg type.
This is used to wrap each argument pointer before passing them
to Cif::call.
Trait Implementations
impl Clone for Arg[src]
fn clone(&self) -> Arg[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more