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§
sourceunsafe 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.
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.