[][src]Struct libffi::high::call::Arg

pub struct Arg<'a> { /* fields omitted */ }

Encapsulates an argument with its type information.

In order to set up calls using call, we need to wrap (a reference to) each argument in an Arg. The usual way to do this is with function arg.

Methods

impl<'a> Arg<'a>[src]

pub fn new<T: CType>(arg: &'a T) -> Self[src]

Wraps an argument reference for passing to high::call::call.

For a shorter alias of the same, see high::call::arg.

Trait Implementations

impl<'a> Clone for Arg<'a>[src]

impl<'a> Debug for Arg<'a>[src]

Auto Trait Implementations

impl<'a> !Send for Arg<'a>

impl<'a> !Sync for Arg<'a>

impl<'a> Unpin for Arg<'a>

impl<'a> UnwindSafe for Arg<'a>

impl<'a> RefUnwindSafe for Arg<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]