Trait MLBatchProvider

Source
pub unsafe trait MLBatchProvider {
    // Provided methods
    unsafe fn count(&self) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn featuresAtIndex(
        &self,
        index: NSInteger,
    ) -> Retained<ProtocolObject<dyn MLFeatureProvider>>
       where Self: Sized + Message { ... }
}
Available on crate feature MLBatchProvider only.
Expand description

Protocol for accessing a collection of feature providers

See also Apple’s documentation

Provided Methods§

Source

unsafe fn count(&self) -> NSInteger
where Self: Sized + Message,

Total number of feature providers

Source

unsafe fn featuresAtIndex( &self, index: NSInteger, ) -> Retained<ProtocolObject<dyn MLFeatureProvider>>
where Self: Sized + Message,

Available on crate feature MLFeatureProvider only.

Indexed access to collection

Trait Implementations§

Source§

impl ProtocolType for dyn MLBatchProvider

Source§

const NAME: &'static str = "MLBatchProvider"

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

impl<T> ImplementedBy<T> for dyn MLBatchProvider

Implementations on Foreign Types§

Source§

impl<T> MLBatchProvider for ProtocolObject<T>
where T: ?Sized + MLBatchProvider,

Implementors§

Source§

impl MLBatchProvider for MLArrayBatchProvider

Available on crate feature MLArrayBatchProvider only.