Skip to main content

UIDataSourceModelAssociation

Trait UIDataSourceModelAssociation 

Source
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§

Source

fn modelIdentifierForElementAtIndexPath_inView( &self, idx: &NSIndexPath, view: &UIView, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
Source

fn indexPathForElementWithModelIdentifier_inView( &self, identifier: &NSString, view: &UIView, ) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIDataSourceModelAssociation

Source§

impl ProtocolType for dyn UIDataSourceModelAssociation

Source§

const NAME: &'static str = "UIDataSourceModelAssociation"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIDataSourceModelAssociation for ProtocolObject<T>

Implementors§