Struct block::ConcreteBlock
source · #[repr(C)]pub struct ConcreteBlock<A, R, F> { /* private fields */ }
Expand description
An Objective-C block whose size is known at compile time and may be constructed on the stack.
Implementations§
source§impl<A, R, F> ConcreteBlock<A, R, F>where
A: BlockArguments,
F: IntoConcreteBlock<A, Ret = R>,
impl<A, R, F> ConcreteBlock<A, R, F>where A: BlockArguments, F: IntoConcreteBlock<A, Ret = R>,
Methods from Deref<Target = Block<A, R>>§
sourcepub unsafe fn call(&self, args: A) -> R
pub unsafe fn call(&self, args: A) -> R
Call self with the given arguments.
Unsafe because this invokes foreign code that the caller must verify doesn’t violate any of Rust’s safety rules. For example, if this block is shared with multiple references, the caller must ensure that calling it will not cause a data race.
Trait Implementations§
source§impl<A, R, F> Clone for ConcreteBlock<A, R, F>where
F: Clone,
impl<A, R, F> Clone for ConcreteBlock<A, R, F>where F: Clone,
source§impl<A, R, F> Deref for ConcreteBlock<A, R, F>
impl<A, R, F> Deref for ConcreteBlock<A, R, F>
Auto Trait Implementations§
impl<A, R, F> RefUnwindSafe for ConcreteBlock<A, R, F>where F: RefUnwindSafe,
impl<A, R, F> !Send for ConcreteBlock<A, R, F>
impl<A, R, F> !Sync for ConcreteBlock<A, R, F>
impl<A, R, F> Unpin for ConcreteBlock<A, R, F>where F: Unpin,
impl<A, R, F> UnwindSafe for ConcreteBlock<A, R, F>where F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more