Skip to main content

responds

Function responds 

Source
pub unsafe fn responds(receiver: *mut c_void, selector: *const c_void) -> bool
Expand description

Does receiver implement selector?

Used to pick between an API and its newer replacement at runtime rather than at build time.

§Safety

receiver must be a live object or class.