Struct libffi::high::arity0::Cif0[][src]

pub struct Cif0<R> { /* fields omitted */ }

A typed CIF, which statically tracks argument and result types.

Implementations

impl<R> Cif0<R>[src]

pub fn new(result: Type<R>) -> Self[src]

Creates a new statically-typed CIF with the given argument and result types.

pub fn set_abi(&mut self, abi: FfiAbi)[src]

Sets the CIF to use the given calling convention.

impl<R: CType> Cif0<R>[src]

pub fn reify() -> Self[src]

Creates a new statically-typed CIF by reifying the argument types as Type<T>s.

Auto Trait Implementations

impl<R> RefUnwindSafe for Cif0<R>

impl<R> !Send for Cif0<R>

impl<R> !Sync for Cif0<R>

impl<R> Unpin for Cif0<R>

impl<R> UnwindSafe for Cif0<R>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.