Trait NSSetNSCollectionViewAdditions

Source
pub unsafe trait NSSetNSCollectionViewAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn setWithCollectionViewIndexPath(
        index_path: &NSIndexPath,
    ) -> Retained<Self> { ... }
    unsafe fn setWithCollectionViewIndexPaths(
        index_paths: &NSArray<NSIndexPath>,
    ) -> Retained<Self> { ... }
    unsafe fn enumerateIndexPathsWithOptions_usingBlock(
        &self,
        opts: NSEnumerationOptions,
        block: &DynBlock<dyn Fn(NonNull<NSIndexPath>, NonNull<Bool>) + '_>,
    ) { ... }
}
Available on crate feature NSCollectionView only.
Expand description

Category “NSCollectionViewAdditions” on NSSet.

Provided Methods§

Source

unsafe fn setWithCollectionViewIndexPath( index_path: &NSIndexPath, ) -> Retained<Self>

Source

unsafe fn setWithCollectionViewIndexPaths( index_paths: &NSArray<NSIndexPath>, ) -> Retained<Self>

Source

unsafe fn enumerateIndexPathsWithOptions_usingBlock( &self, opts: NSEnumerationOptions, block: &DynBlock<dyn Fn(NonNull<NSIndexPath>, NonNull<Bool>) + '_>, )

Available on crate feature block2 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 NSSetNSCollectionViewAdditions for NSSet

Implementors§