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

An Objective-C block that does not capture its environment.

This is effectively just a glorified function pointer, and can created and stored in static memory using the global_block! macro.

If ConcreteBlock is the Fn-block equivalent, this is likewise the fn-block equivalent.

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

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.