Trait objc2_metal::MTLFunctionHandle

source ·
pub unsafe trait MTLFunctionHandle: NSObjectProtocol + IsRetainable {
    // Provided methods
    fn functionType(&self) -> MTLFunctionType
       where Self: Sized + Message { ... }
    fn name(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
}
Available on crate feature MTLFunctionHandle only.

Provided Methods§

source

fn functionType(&self) -> MTLFunctionType
where Self: Sized + Message,

Available on crate feature MTLLibrary only.
source

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

source

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

Available on crate feature MTLDevice only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLFunctionHandle

source§

const NAME: &'static str = "MTLFunctionHandle"

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 MTLFunctionHandle

Implementations on Foreign Types§

source§

impl<T> MTLFunctionHandle for ProtocolObject<T>

Implementors§