#[non_exhaustive]#[repr(u32)]pub enum ExposureMetering {
Average,
CenterWeighted,
Spot,
Matrix,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl AsRef<u32> for ExposureMetering
impl AsRef<u32> for ExposureMetering
source§impl Clone for ExposureMetering
impl Clone for ExposureMetering
source§fn clone(&self) -> ExposureMetering
fn clone(&self) -> ExposureMetering
Returns a copy 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 ExposureMetering
impl Debug for ExposureMetering
source§impl Deref for ExposureMetering
impl Deref for ExposureMetering
source§impl Display for ExposureMetering
impl Display for ExposureMetering
source§impl From<ExposureMetering> for u32
impl From<ExposureMetering> for u32
source§fn from(data: ExposureMetering) -> Self
fn from(data: ExposureMetering) -> Self
Converts to this type from the input type.
source§impl PartialEq<ExposureMetering> for ExposureMetering
impl PartialEq<ExposureMetering> for ExposureMetering
source§fn eq(&self, other: &ExposureMetering) -> bool
fn eq(&self, other: &ExposureMetering) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for ExposureMetering
impl TryFrom<u32> for ExposureMetering
impl Copy for ExposureMetering
impl Eq for ExposureMetering
impl StructuralEq for ExposureMetering
impl StructuralPartialEq for ExposureMetering
Auto Trait Implementations§
impl RefUnwindSafe for ExposureMetering
impl Send for ExposureMetering
impl Sync for ExposureMetering
impl Unpin for ExposureMetering
impl UnwindSafe for ExposureMetering
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