MDLObjectSCNModelIO

Trait MDLObjectSCNModelIO 

Source
pub unsafe trait MDLObjectSCNModelIO:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn objectWithSCNNode(scn_node: &SCNNode) -> Retained<Self> { ... }
    unsafe fn objectWithSCNNode_bufferAllocator(
        scn_node: &SCNNode,
        buffer_allocator: Option<&ProtocolObject<dyn MDLMeshBufferAllocator>>,
    ) -> Retained<Self> { ... }
}
Available on crate feature ModelIO only.
Expand description

Category “SCNModelIO” on MDLObject.

Provided Methods§

Source

unsafe fn objectWithSCNNode(scn_node: &SCNNode) -> Retained<Self>

Available on crate feature SCNNode only.
Source

unsafe fn objectWithSCNNode_bufferAllocator( scn_node: &SCNNode, buffer_allocator: Option<&ProtocolObject<dyn MDLMeshBufferAllocator>>, ) -> Retained<Self>

Available on crate feature SCNNode and crate feature objc2-model-io and non-watchOS only.

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.

Implementations on Foreign Types§

Source§

impl MDLObjectSCNModelIO for MDLObject

Available on crate feature objc2-model-io and non-watchOS only.

Implementors§