pub unsafe trait UIDataSourceModelAssociation: MainThreadOnly {
// Provided methods
fn modelIdentifierForElementAtIndexPath_inView(
&self,
idx: &NSIndexPath,
view: &UIView,
) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn indexPathForElementWithModelIdentifier_inView(
&self,
identifier: &NSString,
view: &UIView,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
}Available on crate feature
UIStateRestoration only.Expand description
Provided Methods§
fn modelIdentifierForElementAtIndexPath_inView( &self, idx: &NSIndexPath, view: &UIView, ) -> Option<Retained<NSString>>
Available on crate features
UIResponder and UIView only.fn indexPathForElementWithModelIdentifier_inView( &self, identifier: &NSString, view: &UIView, ) -> Option<Retained<NSIndexPath>>
Available on crate features
UIResponder and UIView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIDataSourceModelAssociation
Source§impl ProtocolType for dyn UIDataSourceModelAssociation
impl ProtocolType for dyn UIDataSourceModelAssociation
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".