pub unsafe trait NSArrayGameplayKit<ObjectType: Message>:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn shuffledArrayWithRandomSource(
&self,
random_source: &GKRandomSource,
) -> Retained<NSArray<ObjectType>> { ... }
unsafe fn shuffledArray(&self) -> Retained<NSArray<ObjectType>> { ... }
}Available on crate feature
GKRandomSource only.Expand description
Category “GameplayKit” on NSArray.
Provided Methods§
unsafe fn shuffledArrayWithRandomSource( &self, random_source: &GKRandomSource, ) -> Retained<NSArray<ObjectType>>
unsafe fn shuffledArray(&self) -> Retained<NSArray<ObjectType>>
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.