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§
unsafe fn valueWithSCNVector3(v: SCNVector3) -> Retained<NSValue>
Available on crate feature
objc2-core-foundation only.unsafe fn valueWithSCNVector4(v: SCNVector4) -> Retained<NSValue>
Available on crate feature
objc2-core-foundation only.unsafe fn valueWithSCNMatrix4(v: SCNMatrix4) -> Retained<NSValue>
Available on crate feature
objc2-quartz-core and non-watchOS only.unsafe fn SCNVector3Value(&self) -> SCNVector3
Available on crate feature
objc2-core-foundation only.unsafe fn SCNVector4Value(&self) -> SCNVector4
Available on crate feature
objc2-core-foundation only.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.