pub unsafe trait UICollectionViewDropItem: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn dragItem(&self) -> Retained<UIDragItem>
where Self: Sized + Message { ... }
fn sourceIndexPath(&self) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
fn previewSize(&self) -> CGSize
where Self: Sized + Message { ... }
}Available on crate feature
UICollectionView only.Expand description
Provided Methods§
fn dragItem(&self) -> Retained<UIDragItem>
Available on crate feature
UIDragItem only.fn sourceIndexPath(&self) -> Option<Retained<NSIndexPath>>
fn previewSize(&self) -> CGSize
Available on crate feature
objc2-core-foundation only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UICollectionViewDropItem
Source§impl ProtocolType for dyn UICollectionViewDropItem
impl ProtocolType for dyn UICollectionViewDropItem
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".