#[repr(C)]pub enum CaptureOrientation {
Up = 0,
Down = 1,
Left = 2,
Right = 3,
Mirror = 4,
}Expand description
Rotation / mirroring the capture needs relative to the display (the sensor’s native orientation rarely matches the UI’s).
Variants§
Up = 0
Upright (0°).
Down = 1
Upside down (180°).
Left = 2
Rotated 90° counter-clockwise.
Right = 3
Rotated 90° clockwise.
Mirror = 4
Horizontally mirrored (typical for the front camera).
Trait Implementations§
Source§impl Clone for CaptureOrientation
impl Clone for CaptureOrientation
Source§fn clone(&self) -> CaptureOrientation
fn clone(&self) -> CaptureOrientation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptureOrientation
impl Debug for CaptureOrientation
Source§impl Hash for CaptureOrientation
impl Hash for CaptureOrientation
Source§impl Ord for CaptureOrientation
impl Ord for CaptureOrientation
Source§fn cmp(&self, other: &CaptureOrientation) -> Ordering
fn cmp(&self, other: &CaptureOrientation) -> Ordering
1.21.0 (const: unstable) · 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 CaptureOrientation
impl PartialEq for CaptureOrientation
Source§fn eq(&self, other: &CaptureOrientation) -> bool
fn eq(&self, other: &CaptureOrientation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CaptureOrientation
impl PartialOrd for CaptureOrientation
impl Copy for CaptureOrientation
impl Eq for CaptureOrientation
impl StructuralPartialEq for CaptureOrientation
Auto Trait Implementations§
impl Freeze for CaptureOrientation
impl RefUnwindSafe for CaptureOrientation
impl Send for CaptureOrientation
impl Sync for CaptureOrientation
impl Unpin for CaptureOrientation
impl UnsafeUnpin for CaptureOrientation
impl UnwindSafe for CaptureOrientation
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