pub macro selector($methname:expr) { ... }
darwin_objc
Gets a reference to an Objective-C selector.
This macro will yield an expression of type SEL for the given method name string literal.
SEL
It is similar to Objective-C’s @selector directive.
@selector
#![feature(darwin_objc)] use core::os::darwin::objc; let alloc_sel = objc::selector!("alloc"); let init_sel = objc::selector!("initWithCString:encoding:");