CICoreMLModel

Trait CICoreMLModel 

Source
pub unsafe trait CICoreMLModel: CIFilterProtocol {
    // Provided methods
    unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
       where Self: Sized + Message { ... }
    unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
       where Self: Sized + Message { ... }
    unsafe fn model(&self) -> Retained<MLModel>
       where Self: Sized + Message { ... }
    unsafe fn setModel(&self, model: &MLModel)
       where Self: Sized + Message { ... }
    unsafe fn headIndex(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setHeadIndex(&self, head_index: c_float)
       where Self: Sized + Message { ... }
    unsafe fn softmaxNormalization(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn setSoftmaxNormalization(&self, softmax_normalization: bool)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

Provided Methods§

Source

unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message,

Available on crate feature CIImage only.
Source

unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message,

Available on crate feature CIImage only.

Setter for inputImage.

Source

unsafe fn model(&self) -> Retained<MLModel>
where Self: Sized + Message,

Available on crate feature objc2-core-ml only.
Source

unsafe fn setModel(&self, model: &MLModel)
where Self: Sized + Message,

Available on crate feature objc2-core-ml only.

Setter for model.

Source

unsafe fn headIndex(&self) -> c_float
where Self: Sized + Message,

Source

unsafe fn setHeadIndex(&self, head_index: c_float)
where Self: Sized + Message,

Setter for headIndex.

Source

unsafe fn softmaxNormalization(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn setSoftmaxNormalization(&self, softmax_normalization: bool)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn CICoreMLModel

Source§

const NAME: &'static str = "CICoreMLModel"

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 CICoreMLModel
where T: ?Sized + Message + CICoreMLModel,

Implementations on Foreign Types§

Source§

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

Implementors§