Struct block2::Block[][src]

#[repr(C)]
pub struct Block<A, R> { /* fields omitted */ }
Expand description

An Objective-C block that takes arguments of A when called and returns a value of R.

Implementations

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

The Objective-C type-encoding for a reference of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.