Macro class
Source macro_rules! class {
($name:ident) => { ... };
}
Expand description
Cached class lookup.
This macro creates a lazily-initialized static class reference that is
looked up from the Objective-C runtime on first use.
§Panics
Panics if the class is not found in the runtime.
§Examples
ⓘlet cls = class!(NSObject);
let cls = class!(MTLDevice);