Trait VNFaceObservationAccepting

Source
pub unsafe trait VNFaceObservationAccepting: NSObjectProtocol {
    // Provided methods
    unsafe fn inputFaceObservations(
        &self,
    ) -> Option<Retained<NSArray<VNFaceObservation>>>
       where Self: Sized + Message { ... }
    unsafe fn setInputFaceObservations(
        &self,
        input_face_observations: Option<&NSArray<VNFaceObservation>>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature VNFaceObservationAccepting only.
Expand description

A protocol that allows a user to provide an input collection of VNFaceObservations as part of a request. The protocol can be adopted by request objects that request additional information about detected faces, such as facial landmarks.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn inputFaceObservations( &self, ) -> Option<Retained<NSArray<VNFaceObservation>>>
where Self: Sized + Message,

Available on crate feature VNObservation only.

The VNFaceObservation objects to be processed as part of the request.

Source

unsafe fn setInputFaceObservations( &self, input_face_observations: Option<&NSArray<VNFaceObservation>>, )
where Self: Sized + Message,

Available on crate feature VNObservation only.

Trait Implementations§

Source§

impl ProtocolType for dyn VNFaceObservationAccepting

Source§

const NAME: &'static str = "VNFaceObservationAccepting"

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 VNFaceObservationAccepting

Implementations on Foreign Types§

Source§

impl<T> VNFaceObservationAccepting for ProtocolObject<T>

Implementors§

Source§

impl VNFaceObservationAccepting for VNDetectFaceCaptureQualityRequest

Available on crate feature VNDetectFaceCaptureQualityRequest only.
Source§

impl VNFaceObservationAccepting for VNDetectFaceLandmarksRequest

Available on crate feature VNDetectFaceLandmarksRequest only.