Trait block::BlockArguments
[−]
[src]
pub trait BlockArguments: Sized { unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R; }
Types that may be used as the arguments to an Objective-C block.
Required Methods
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.
Implementors
impl BlockArguments for ()
impl<A> BlockArguments for (A,)
impl<A, B> BlockArguments for (A, B)
impl<A, B, C> BlockArguments for (A, B, C)
impl<A, B, C, D> BlockArguments for (A, B, C, D)
impl<A, B, C, D, E> BlockArguments for (A, B, C, D, E)
impl<A, B, C, D, E, F> BlockArguments for (A, B, C, D, E, F)
impl<A, B, C, D, E, F, G> BlockArguments for (A, B, C, D, E, F, G)
impl<A, B, C, D, E, F, G, H> BlockArguments for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H, I> BlockArguments for (A, B, C, D, E, F, G, H, I)
impl<A, B, C, D, E, F, G, H, I, J> BlockArguments for (A, B, C, D, E, F, G, H, I, J)
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)
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)