Struct block2::RcBlock [−][src]
pub struct RcBlock<A, R> { /* fields omitted */ }
Expand description
A reference-counted Objective-C block.
Implementations
Construct an RcBlock
for the given block without copying it.
The caller must ensure the block has a +1 reference count.
Safety
The given pointer must point to a valid Block
and must have a +1
reference count or it will be overreleased when the RcBlock
is
dropped.
Methods from Deref<Target = Block<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
Auto Trait Implementations
impl<A, R> !RefUnwindSafe for RcBlock<A, R>
impl<A, R> !UnwindSafe for RcBlock<A, R>
Blanket Implementations
Mutably borrows from an owned value. Read more