#[repr(transparent)]pub struct AVCaptureAutoFocusSystem(pub NSInteger);Available on crate feature
AVCaptureDevice only.Expand description
Constants indicating the autofocus system.
Indicates that autofocus is not available.
Indicates that autofocus is achieved by contrast detection. Contrast detection performs a focus scan to find the optimal position.
Indicates that autofocus is achieved by phase detection. Phase detection has the ability to achieve focus in many cases without a focus scan. Phase detection autofocus is typically less visually intrusive than contrast detection autofocus.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVCaptureAutoFocusSystem
impl AVCaptureAutoFocusSystem
pub const None: Self
pub const ContrastDetection: Self
pub const PhaseDetection: Self
Trait Implementations§
Source§impl Clone for AVCaptureAutoFocusSystem
impl Clone for AVCaptureAutoFocusSystem
Source§fn clone(&self) -> AVCaptureAutoFocusSystem
fn clone(&self) -> AVCaptureAutoFocusSystem
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 AVCaptureAutoFocusSystem
impl Debug for AVCaptureAutoFocusSystem
Source§impl Encode for AVCaptureAutoFocusSystem
impl Encode for AVCaptureAutoFocusSystem
Source§impl Hash for AVCaptureAutoFocusSystem
impl Hash for AVCaptureAutoFocusSystem
Source§impl Ord for AVCaptureAutoFocusSystem
impl Ord for AVCaptureAutoFocusSystem
Source§fn cmp(&self, other: &AVCaptureAutoFocusSystem) -> Ordering
fn cmp(&self, other: &AVCaptureAutoFocusSystem) -> 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 AVCaptureAutoFocusSystem
impl PartialEq for AVCaptureAutoFocusSystem
Source§impl PartialOrd for AVCaptureAutoFocusSystem
impl PartialOrd for AVCaptureAutoFocusSystem
Source§impl RefEncode for AVCaptureAutoFocusSystem
impl RefEncode for AVCaptureAutoFocusSystem
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 AVCaptureAutoFocusSystem
impl Eq for AVCaptureAutoFocusSystem
impl StructuralPartialEq for AVCaptureAutoFocusSystem
Auto Trait Implementations§
impl Freeze for AVCaptureAutoFocusSystem
impl RefUnwindSafe for AVCaptureAutoFocusSystem
impl Send for AVCaptureAutoFocusSystem
impl Sync for AVCaptureAutoFocusSystem
impl Unpin for AVCaptureAutoFocusSystem
impl UnwindSafe for AVCaptureAutoFocusSystem
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.