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§
unsafe fn indexPathForItem_inSection( item: NSInteger, section: NSInteger, ) -> Retained<NSIndexPath>
unsafe fn item(&self) -> NSInteger
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.