[−][src]Struct block::Block
An Objective-C block that takes arguments of A
when called and
returns a value of R
.
Implementations
impl<A: BlockArguments, R> Block<A, R> where
A: BlockArguments,
[src]
A: BlockArguments,
pub unsafe fn call(&self, args: A) -> R
[src]
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.
Auto Trait Implementations
impl<A, R> RefUnwindSafe for Block<A, R>
impl<A, R> !Send for Block<A, R>
impl<A, R> !Sync for Block<A, R>
impl<A, R> Unpin for Block<A, R>
impl<A, R> UnwindSafe for Block<A, R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,