pub unsafe trait UIDataSourceModelAssociation: IsMainThreadOnly {
// Provided methods
unsafe fn modelIdentifierForElementAtIndexPath_inView(
&self,
idx: &NSIndexPath,
view: &UIView
) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn indexPathForElementWithModelIdentifier_inView(
&self,
identifier: &NSString,
view: &UIView
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
}
Available on crate feature
UIStateRestoration
only.Provided Methods§
unsafe fn modelIdentifierForElementAtIndexPath_inView( &self, idx: &NSIndexPath, view: &UIView ) -> Option<Retained<NSString>>
Available on crate features
UIResponder
and UIView
only.unsafe fn indexPathForElementWithModelIdentifier_inView( &self, identifier: &NSString, view: &UIView ) -> Option<Retained<NSIndexPath>>
Available on crate features
UIResponder
and UIView
only.