pub enum FacingMode {
User,
Environment,
Left,
Right,
}
Expand description
The directions that the camera can face, as seen from the user’s perspective.
§Note
The enumeration is not exhaustive and merely provides a list of known values.
Variants§
User
The source is facing toward the user (a self-view camera).
Environment
The source is facing away from the user (viewing the environment).
Left
The source is facing to the left of the user.
Right
The source is facing to the right of the user.
Implementations§
Source§impl FacingMode
impl FacingMode
Sourcepub fn environment() -> String
pub fn environment() -> String
Returns "environment"
, the string-value of the Environment
facing mode.
Trait Implementations§
Source§impl Clone for FacingMode
impl Clone for FacingMode
Source§fn clone(&self) -> FacingMode
fn clone(&self) -> FacingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FacingMode
impl Debug for FacingMode
Source§impl Display for FacingMode
impl Display for FacingMode
Source§impl Hash for FacingMode
impl Hash for FacingMode
Source§impl PartialEq for FacingMode
impl PartialEq for FacingMode
impl Copy for FacingMode
impl Eq for FacingMode
impl StructuralPartialEq for FacingMode
Auto Trait Implementations§
impl Freeze for FacingMode
impl RefUnwindSafe for FacingMode
impl Send for FacingMode
impl Sync for FacingMode
impl Unpin for FacingMode
impl UnwindSafe for FacingMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.