Trait block::BlockArguments

source ·
pub trait BlockArguments: Sized {
    // Required method
    unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R;
}
Expand description

Types that may be used as the arguments to an Objective-C block.

Required Methods§

source

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

Calls the given Block with self as the arguments.

Unsafe because block must point to a valid Block and this invokes foreign code whose safety the compiler cannot verify.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BlockArguments for ()

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A> BlockArguments for (A,)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B> BlockArguments for (A, B)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C> BlockArguments for (A, B, C)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D> BlockArguments for (A, B, C, D)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E> BlockArguments for (A, B, C, D, E)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F> BlockArguments for (A, B, C, D, E, F)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F, G> BlockArguments for (A, B, C, D, E, F, G)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F, G, H> BlockArguments for (A, B, C, D, E, F, G, H)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F, G, H, I> BlockArguments for (A, B, C, D, E, F, G, H, I)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F, G, H, I, J> BlockArguments for (A, B, C, D, E, F, G, H, I, J)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F, G, H, I, J, K> BlockArguments for (A, B, C, D, E, F, G, H, I, J, K)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> BlockArguments for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R

Implementors§