Trait objc2_ui_kit::UIDataSourceModelAssociation

source ·
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§

source

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

Available on crate features UIResponder and UIView only.
source

unsafe 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 ProtocolType for dyn UIDataSourceModelAssociation

source§

const NAME: &'static str = "UIDataSourceModelAssociation"

The name of the Objective-C protocol that this type represents.
source§

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

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

impl<T> ImplementedBy<T> for dyn UIDataSourceModelAssociation

Implementations on Foreign Types§

source§

impl<T> UIDataSourceModelAssociation for ProtocolObject<T>

Implementors§