#[repr(transparent)]pub struct AVCaptureVideoOrientation(pub NSInteger);👎Deprecated: Use AVCaptureDeviceRotationCoordinator instead
Available on crate feature
AVCaptureSession only.Expand description
Constants indicating video orientation, for use with AVCaptureVideoPreviewLayer (see AVCaptureVideoPreviewLayer.h) and AVCaptureConnection (see below).
Indicates that video should be oriented vertically, home button on the bottom.
Indicates that video should be oriented vertically, home button on the top.
Indicates that video should be oriented horizontally, home button on the right.
Indicates that video should be oriented horizontally, home button on the left.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger👎Deprecated: Use AVCaptureDeviceRotationCoordinator instead
Implementations§
Source§impl AVCaptureVideoOrientation
impl AVCaptureVideoOrientation
pub const Portrait: Self
👎Deprecated: Use AVCaptureDeviceRotationCoordinator instead
pub const PortraitUpsideDown: Self
👎Deprecated: Use AVCaptureDeviceRotationCoordinator instead
pub const LandscapeRight: Self
👎Deprecated: Use AVCaptureDeviceRotationCoordinator instead
pub const LandscapeLeft: Self
👎Deprecated: Use AVCaptureDeviceRotationCoordinator instead
Trait Implementations§
Source§impl Clone for AVCaptureVideoOrientation
impl Clone for AVCaptureVideoOrientation
Source§fn clone(&self) -> AVCaptureVideoOrientation
fn clone(&self) -> AVCaptureVideoOrientation
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 AVCaptureVideoOrientation
impl Debug for AVCaptureVideoOrientation
Source§impl Encode for AVCaptureVideoOrientation
impl Encode for AVCaptureVideoOrientation
Source§impl Hash for AVCaptureVideoOrientation
impl Hash for AVCaptureVideoOrientation
Source§impl Ord for AVCaptureVideoOrientation
impl Ord for AVCaptureVideoOrientation
Source§fn cmp(&self, other: &AVCaptureVideoOrientation) -> Ordering
fn cmp(&self, other: &AVCaptureVideoOrientation) -> 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 AVCaptureVideoOrientation
impl PartialEq for AVCaptureVideoOrientation
Source§fn eq(&self, other: &AVCaptureVideoOrientation) -> bool
fn eq(&self, other: &AVCaptureVideoOrientation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AVCaptureVideoOrientation
impl PartialOrd for AVCaptureVideoOrientation
Source§impl RefEncode for AVCaptureVideoOrientation
impl RefEncode for AVCaptureVideoOrientation
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 AVCaptureVideoOrientation
impl Eq for AVCaptureVideoOrientation
impl StructuralPartialEq for AVCaptureVideoOrientation
Auto Trait Implementations§
impl Freeze for AVCaptureVideoOrientation
impl RefUnwindSafe for AVCaptureVideoOrientation
impl Send for AVCaptureVideoOrientation
impl Sync for AVCaptureVideoOrientation
impl Unpin for AVCaptureVideoOrientation
impl UnwindSafe for AVCaptureVideoOrientation
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.