pub unsafe trait UIPickerViewDataSource: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn numberOfComponentsInPickerView(
&self,
picker_view: &UIPickerView,
) -> NSInteger
where Self: Sized + Message { ... }
fn pickerView_numberOfRowsInComponent(
&self,
picker_view: &UIPickerView,
component: NSInteger,
) -> NSInteger
where Self: Sized + Message { ... }
}Available on crate feature
UIPickerView only.Expand description
Provided Methods§
fn numberOfComponentsInPickerView( &self, picker_view: &UIPickerView, ) -> NSInteger
Available on crate features
UIResponder and UIView only.fn pickerView_numberOfRowsInComponent( &self, picker_view: &UIPickerView, component: NSInteger, ) -> NSInteger
Available on crate features
UIResponder and UIView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIPickerViewDataSource
Source§impl ProtocolType for dyn UIPickerViewDataSource
impl ProtocolType for dyn UIPickerViewDataSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".