NSArrayGameplayKit

Trait NSArrayGameplayKit 

Source
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§

Source

unsafe fn shuffledArrayWithRandomSource( &self, random_source: &GKRandomSource, ) -> Retained<NSArray<ObjectType>>

Source

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.

Implementations on Foreign Types§

Source§

impl<ObjectType: Message> NSArrayGameplayKit<ObjectType> for NSArray<ObjectType>

Implementors§