Struct block::RcBlock [] [src]

pub struct RcBlock<A, R> { /* fields omitted */ }

A reference-counted Objective-C block.

Methods

impl<A, R> RcBlock<A, R>
[src]

Construct an RcBlock for the given block without copying it. The caller must ensure the block has a +1 reference count.

Unsafe because ptr must point to a valid Block and must have a +1 reference count or it will be overreleased when the RcBlock is dropped.

Constructs an RcBlock by copying the given block.

Unsafe because ptr must point to a valid Block.

Methods from Deref<Target = Block<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

impl<A, R> Clone for RcBlock<A, R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A, R> Deref for RcBlock<A, R>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<A, R> Drop for RcBlock<A, R>
[src]

A method called when the value goes out of scope. Read more