Trait NSValueSceneKitAdditions

Source
pub unsafe trait NSValueSceneKitAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn valueWithSCNVector3(v: SCNVector3) -> Retained<NSValue> { ... }
    unsafe fn valueWithSCNVector4(v: SCNVector4) -> Retained<NSValue> { ... }
    unsafe fn valueWithSCNMatrix4(v: SCNMatrix4) -> Retained<NSValue> { ... }
    unsafe fn SCNVector3Value(&self) -> SCNVector3 { ... }
    unsafe fn SCNVector4Value(&self) -> SCNVector4 { ... }
    unsafe fn SCNMatrix4Value(&self) -> SCNMatrix4 { ... }
}
Available on crate feature SceneKitTypes only.
Expand description

Category “SceneKitAdditions” on NSValue. Adds methods to wrap vectors in NSValue objects.

Provided Methods§

Source

unsafe fn valueWithSCNVector3(v: SCNVector3) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithSCNVector4(v: SCNVector4) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithSCNMatrix4(v: SCNMatrix4) -> Retained<NSValue>

Available on crate feature objc2-quartz-core and non-watchOS only.
Source

unsafe fn SCNVector3Value(&self) -> SCNVector3

Available on crate feature objc2-core-foundation only.
Source

unsafe fn SCNVector4Value(&self) -> SCNVector4

Available on crate feature objc2-core-foundation only.
Source

unsafe fn SCNMatrix4Value(&self) -> SCNMatrix4

Available on crate feature objc2-quartz-core 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 NSValueSceneKitAdditions for NSValue

Implementors§