[][src]Struct safer_ffi::closure::boxed::BoxDynFnMut0

#[repr(C)]pub struct BoxDynFnMut0<Ret> where
    Ret: ReprC
{ /* fields omitted */ }
This is supported on feature="alloc" only.

Box<dyn 'static + Send + FnMut() -> Ret>

C Layout

Implementations

impl<Ret> BoxDynFnMut0<Ret> where
    Ret: ReprC
[src]

pub fn new<F>(f: Box<F>) -> Self where
    F: FnMut() -> Ret,
    F: Send + 'static, 
[src]

This is supported on feature="alloc" only.

impl<Ret> BoxDynFnMut0<Ret> where
    Ret: ReprC
[src]

pub fn call(&mut self) -> Ret[src]

This is supported on feature="alloc" only.

Trait Implementations

impl<Ret> Debug for BoxDynFnMut0<Ret> where
    Ret: ReprC
[src]

impl<Ret> Drop for BoxDynFnMut0<Ret> where
    Ret: ReprC
[src]

impl<Ret> ReprC for BoxDynFnMut0<Ret> where
    NonNull<c_void>: ReprC,
    <NonNull<c_void> as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
    <unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    <unsafe extern "C" fn(env_ptr: NonNull<c_void>) as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    Ret: ReprC,
    Ret: ReprC
[src]

type CLayout = BoxDynFnMut0_Layout<Ret>

The CType having the same layout as Self.

impl<Ret> Send for BoxDynFnMut0<Ret> where
    Ret: ReprC
[src]

Box<dyn Send + ...> : Send

Auto Trait Implementations

impl<Ret> RefUnwindSafe for BoxDynFnMut0<Ret>

impl<Ret> !Sync for BoxDynFnMut0<Ret>

impl<Ret> Unpin for BoxDynFnMut0<Ret>

impl<Ret> UnwindSafe for BoxDynFnMut0<Ret>

Blanket Implementations

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

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

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

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

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

impl<T> ManuallyDropMut for T

type Ret = ManuallyDrop<T>

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.

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.