Struct block2::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
sourceimpl<A, R, F> ConcreteBlock<A, R, F> where
A: BlockArguments,
R: Encode,
F: IntoConcreteBlock<A, Output = R>,
impl<A, R, F> ConcreteBlock<A, R, F> where
A: BlockArguments,
R: Encode,
F: IntoConcreteBlock<A, Output = R>,
sourceimpl<A, R, F: 'static> ConcreteBlock<A, R, F>
impl<A, R, F: 'static> ConcreteBlock<A, R, F>
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.
Safety
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
sourceimpl<A, R, F: Clone> Clone for ConcreteBlock<A, R, F>
impl<A, R, F: Clone> Clone for ConcreteBlock<A, R, F>
sourceimpl<A, R, F: Debug> Debug for ConcreteBlock<A, R, F>
impl<A, R, F: Debug> Debug for ConcreteBlock<A, R, F>
sourceimpl<A, R, F> Deref for ConcreteBlock<A, R, F>
impl<A, R, F> Deref for ConcreteBlock<A, R, F>
sourceimpl<A: BlockArguments, R: Encode, F> RefEncode for ConcreteBlock<A, R, F>
impl<A: BlockArguments, R: Encode, F> RefEncode for ConcreteBlock<A, R, F>
sourceconst ENCODING_REF: Encoding = Encoding::Block
const ENCODING_REF: Encoding = Encoding::Block
The Objective-C type-encoding for a reference of this type. Read more
Auto Trait Implementations
impl<A, R, F> !RefUnwindSafe for ConcreteBlock<A, R, F>
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>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more