Trait block2::BlockArguments
source · [−]pub trait BlockArguments: Sized {
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
unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R
unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R
Calls the given Block
with self as the arguments.
Safety
The given block must point to a valid Block
.
This invokes foreign code whose safety the user must guarantee.