Trait NSIndexPathNSCollectionViewAdditions

Source
pub unsafe trait NSIndexPathNSCollectionViewAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn indexPathForItem_inSection(
        item: NSInteger,
        section: NSInteger,
    ) -> Retained<NSIndexPath> { ... }
    unsafe fn item(&self) -> NSInteger { ... }
    unsafe fn section(&self) -> NSInteger { ... }
}
Available on crate feature NSCollectionView only.
Expand description

Category “NSCollectionViewAdditions” on NSIndexPath.

Provided Methods§

Source

unsafe fn indexPathForItem_inSection( item: NSInteger, section: NSInteger, ) -> Retained<NSIndexPath>

Source

unsafe fn item(&self) -> NSInteger

Source

unsafe fn section(&self) -> NSInteger

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 NSIndexPathNSCollectionViewAdditions for NSIndexPath

Implementors§