Skip to main content

MLFeatureProvider

Trait MLFeatureProvider 

Source
pub unsafe trait MLFeatureProvider {
    // Provided methods
    unsafe fn featureNames(&self) -> Retained<NSSet<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn featureValueForName(
        &self,
        feature_name: &NSString,
    ) -> Option<Retained<MLFeatureValue>>
       where Self: Sized + Message { ... }
}
Available on crate feature MLFeatureProvider only.
Expand description

Provided Methods§

Source

unsafe fn featureNames(&self) -> Retained<NSSet<NSString>>
where Self: Sized + Message,

Source

unsafe fn featureValueForName( &self, feature_name: &NSString, ) -> Option<Retained<MLFeatureValue>>
where Self: Sized + Message,

Available on crate feature MLFeatureValue only.

Returns nil if the provided featureName is not in the set of featureNames

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn MLFeatureProvider

Source§

impl ProtocolType for dyn MLFeatureProvider

Source§

const NAME: &'static str = "MLFeatureProvider"

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

Implementors§

Source§

impl MLFeatureProvider for MLDictionaryFeatureProvider

Available on crate feature MLDictionaryFeatureProvider only.