Skip to main content

UIDataSourceTranslating

Trait UIDataSourceTranslating 

Source
pub unsafe trait UIDataSourceTranslating: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn presentationSectionIndexForDataSourceSectionIndex(
        &self,
        data_source_section_index: NSInteger,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    fn dataSourceSectionIndexForPresentationSectionIndex(
        &self,
        presentation_section_index: NSInteger,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    fn presentationIndexPathForDataSourceIndexPath(
        &self,
        data_source_index_path: Option<&NSIndexPath>,
    ) -> Option<Retained<NSIndexPath>>
       where Self: Sized + Message { ... }
    fn dataSourceIndexPathForPresentationIndexPath(
        &self,
        presentation_index_path: Option<&NSIndexPath>,
    ) -> Option<Retained<NSIndexPath>>
       where Self: Sized + Message { ... }
    fn performUsingPresentationValues(
        &self,
        actions_to_translate: &DynBlock<dyn Fn() + '_>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIDataSourceTranslating only.
Expand description

Provided Methods§

Source

fn presentationSectionIndexForDataSourceSectionIndex( &self, data_source_section_index: NSInteger, ) -> NSInteger
where Self: Sized + Message,

Source

fn dataSourceSectionIndexForPresentationSectionIndex( &self, presentation_section_index: NSInteger, ) -> NSInteger
where Self: Sized + Message,

Source

fn presentationIndexPathForDataSourceIndexPath( &self, data_source_index_path: Option<&NSIndexPath>, ) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message,

Source

fn dataSourceIndexPathForPresentationIndexPath( &self, presentation_index_path: Option<&NSIndexPath>, ) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message,

Source

fn performUsingPresentationValues( &self, actions_to_translate: &DynBlock<dyn Fn() + '_>, )
where Self: Sized + Message,

Available on crate feature block2 only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIDataSourceTranslating

Source§

impl ProtocolType for dyn UIDataSourceTranslating

Source§

const NAME: &'static str = "UIDataSourceTranslating"

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> UIDataSourceTranslating for ProtocolObject<T>

Implementors§

Source§

impl UIDataSourceTranslating for UICollectionView

Available on crate feature UICollectionView only.
Source§

impl UIDataSourceTranslating for UITableView

Available on crate feature UITableView only.