Trait MTLDynamicLibrary

Source
pub unsafe trait MTLDynamicLibrary: NSObjectProtocol {
    // Provided methods
    fn label(&self) -> Option<Id<NSString>>
       where Self: Sized + Message { ... }
    fn setLabel(&self, label: Option<&NSString>)
       where Self: Sized + Message { ... }
    fn device(&self) -> Id<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    fn installName(&self) -> Id<NSString>
       where Self: Sized + Message { ... }
    fn serializeToURL_error(&self, url: &NSURL) -> Result<(), Id<NSError>>
       where Self: Sized + Message { ... }
}
👎Deprecated: icrate::Metal has been moved to objc2-metal
Available on crate feature Metal only.

Provided Methods§

Source

fn label(&self) -> Option<Id<NSString>>
where Self: Sized + Message,

👎Deprecated: icrate::Metal has been moved to objc2-metal
Available on crate feature Foundation_NSString only.
Source

fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message,

👎Deprecated: icrate::Metal has been moved to objc2-metal
Available on crate feature Foundation_NSString only.
Source

fn device(&self) -> Id<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

👎Deprecated: icrate::Metal has been moved to objc2-metal
Source

fn installName(&self) -> Id<NSString>
where Self: Sized + Message,

👎Deprecated: icrate::Metal has been moved to objc2-metal
Available on crate feature Foundation_NSString only.
Source

fn serializeToURL_error(&self, url: &NSURL) -> Result<(), Id<NSError>>
where Self: Sized + Message,

👎Deprecated: icrate::Metal has been moved to objc2-metal
Available on crate features Foundation_NSError and Foundation_NSURL only.

Trait Implementations§

Source§

impl ProtocolType for dyn MTLDynamicLibrary

Source§

const NAME: &'static str = "MTLDynamicLibrary"

The name of the Objective-C protocol that this type represents.
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MTLDynamicLibrary

Implementations on Foreign Types§

Source§

impl<T> MTLDynamicLibrary for ProtocolObject<T>

Implementors§