pub unsafe trait UITableViewDataSource: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn tableView_numberOfRowsInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> NSInteger
where Self: Sized + Message { ... }
fn tableView_cellForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Retained<UITableViewCell>
where Self: Sized + Message { ... }
fn numberOfSectionsInTableView(&self, table_view: &UITableView) -> NSInteger
where Self: Sized + Message { ... }
fn tableView_titleForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn tableView_titleForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn tableView_canEditRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_canMoveRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn sectionIndexTitlesForTableView(
&self,
table_view: &UITableView,
) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message { ... }
fn tableView_sectionForSectionIndexTitle_atIndex(
&self,
table_view: &UITableView,
title: &NSString,
index: NSInteger,
) -> NSInteger
where Self: Sized + Message { ... }
fn tableView_commitEditingStyle_forRowAtIndexPath(
&self,
table_view: &UITableView,
editing_style: UITableViewCellEditingStyle,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_moveRowAtIndexPath_toIndexPath(
&self,
table_view: &UITableView,
source_index_path: &NSIndexPath,
destination_index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
}Available on crate feature
UITableView only.Expand description
Provided Methods§
fn tableView_numberOfRowsInSection( &self, table_view: &UITableView, section: NSInteger, ) -> NSInteger
Available on crate features
UIResponder and UIScrollView and UIView only.fn tableView_cellForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Retained<UITableViewCell>
Available on crate features
UIResponder and UIScrollView and UITableViewCell and UIView only.fn numberOfSectionsInTableView(&self, table_view: &UITableView) -> NSInteger
Available on crate features
UIResponder and UIScrollView and UIView only.fn tableView_titleForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> Option<Retained<NSString>>
Available on crate features
UIResponder and UIScrollView and UIView only.Available on crate features
UIResponder and UIScrollView and UIView only.fn tableView_canEditRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
Available on crate features
UIResponder and UIScrollView and UIView only.fn tableView_canMoveRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
Available on crate features
UIResponder and UIScrollView and UIView only.fn sectionIndexTitlesForTableView( &self, table_view: &UITableView, ) -> Option<Retained<NSArray<NSString>>>
Available on crate features
UIResponder and UIScrollView and UIView only.fn tableView_sectionForSectionIndexTitle_atIndex( &self, table_view: &UITableView, title: &NSString, index: NSInteger, ) -> NSInteger
Available on crate features
UIResponder and UIScrollView and UIView only.fn tableView_commitEditingStyle_forRowAtIndexPath( &self, table_view: &UITableView, editing_style: UITableViewCellEditingStyle, index_path: &NSIndexPath, )
Available on crate features
UIResponder and UIScrollView and UITableViewCell and UIView only.fn tableView_moveRowAtIndexPath_toIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, destination_index_path: &NSIndexPath, )
Available on crate features
UIResponder and UIScrollView and UIView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UITableViewDataSource
Source§impl ProtocolType for dyn UITableViewDataSource
impl ProtocolType for dyn UITableViewDataSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> UITableViewDataSource for ProtocolObject<T>where
T: ?Sized + UITableViewDataSource,
Implementors§
impl UITableViewDataSource for UITableViewController
Available on crate feature
UITableViewController only.impl<SectionIdentifierType: ?Sized + Message, ItemIdentifierType: ?Sized + Message> UITableViewDataSource for UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>
Available on crate feature
UIDiffableDataSource only.