#[repr(transparent)]pub struct CNDetectionType(pub NSInteger);Available on crate feature
CNDetection only.Expand description
The type of object that was detected.
Special detection types include:
- autoFocus: from the autofocus system of the camera
- fixedFocus: an explicit request to focus at a fixed disparity
- custom: an object tracked via a custom tracker
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl CNDetectionType
impl CNDetectionType
pub const Unknown: Self
pub const HumanFace: Self
pub const HumanHead: Self
pub const HumanTorso: Self
pub const CatBody: Self
pub const DogBody: Self
pub const CatHead: Self
pub const DogHead: Self
pub const SportsBall: Self
pub const AutoFocus: Self
pub const FixedFocus: Self
pub const Custom: Self
Trait Implementations§
Source§impl Clone for CNDetectionType
impl Clone for CNDetectionType
Source§fn clone(&self) -> CNDetectionType
fn clone(&self) -> CNDetectionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CNDetectionType
impl Debug for CNDetectionType
Source§impl Encode for CNDetectionType
impl Encode for CNDetectionType
Source§impl Hash for CNDetectionType
impl Hash for CNDetectionType
Source§impl Ord for CNDetectionType
impl Ord for CNDetectionType
Source§fn cmp(&self, other: &CNDetectionType) -> Ordering
fn cmp(&self, other: &CNDetectionType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CNDetectionType
impl PartialEq for CNDetectionType
Source§impl PartialOrd for CNDetectionType
impl PartialOrd for CNDetectionType
Source§impl RefEncode for CNDetectionType
impl RefEncode for CNDetectionType
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CNDetectionType
impl Eq for CNDetectionType
impl StructuralPartialEq for CNDetectionType
Auto Trait Implementations§
impl Freeze for CNDetectionType
impl RefUnwindSafe for CNDetectionType
impl Send for CNDetectionType
impl Sync for CNDetectionType
impl Unpin for CNDetectionType
impl UnwindSafe for CNDetectionType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.