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]

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Arg
[src]

Formats the value using the given formatter.