pub unsafe trait NSBundleImageExtension:
ClassType
+ Sized
+ Sealed {
// Provided methods
fn imageForResource(&self, name: &NSImageName) -> Option<Retained<NSImage>> { ... }
fn pathForImageResource(
&self,
name: &NSImageName,
) -> Option<Retained<NSString>> { ... }
fn URLForImageResource(&self, name: &NSImageName) -> Option<Retained<NSURL>> { ... }
}
Available on crate feature
NSImage
only.Expand description
Category on NSBundle
.
Provided Methods§
fn imageForResource(&self, name: &NSImageName) -> Option<Retained<NSImage>>
fn pathForImageResource(&self, name: &NSImageName) -> Option<Retained<NSString>>
fn URLForImageResource(&self, name: &NSImageName) -> Option<Retained<NSURL>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.