Enum generic_camera::GenCamPixelBpp
source · #[non_exhaustive]pub enum GenCamPixelBpp {
Bpp8 = 8,
Bpp10 = 10,
Bpp12 = 12,
Bpp16 = 16,
Bpp24 = 24,
Bpp32 = 32,
}Expand description
Pixel bit depth.
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.
Bpp8 = 8
8 bits per pixel. This is the default.
Bpp10 = 10
10 bits per pixel.
Bpp12 = 12
12 bits per pixel.
Bpp16 = 16
14 bits per pixel.
Bpp24 = 24
16 bits per pixel.
Bpp32 = 32
32 bits per pixel.
Trait Implementations§
source§impl Clone for GenCamPixelBpp
impl Clone for GenCamPixelBpp
source§fn clone(&self) -> GenCamPixelBpp
fn clone(&self) -> GenCamPixelBpp
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 GenCamPixelBpp
impl Debug for GenCamPixelBpp
source§impl<'de> Deserialize<'de> for GenCamPixelBpp
impl<'de> Deserialize<'de> for GenCamPixelBpp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<GenCamPixelBpp> for PropertyValue
impl From<GenCamPixelBpp> for PropertyValue
source§fn from(val: GenCamPixelBpp) -> Self
fn from(val: GenCamPixelBpp) -> Self
Converts to this type from the input type.
source§impl From<u32> for GenCamPixelBpp
impl From<u32> for GenCamPixelBpp
source§fn from(value: u32) -> Self
fn from(value: u32) -> Self
Convert from u32 to GenCamPixelBpp.
§Arguments
value- The value to convert. Note: If the value is not one of the known values,Bpp8is returned.
§Returns
The corresponding GenCamPixelBpp value.
source§impl Ord for GenCamPixelBpp
impl Ord for GenCamPixelBpp
source§fn cmp(&self, other: &GenCamPixelBpp) -> Ordering
fn cmp(&self, other: &GenCamPixelBpp) -> 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 GenCamPixelBpp
impl PartialEq for GenCamPixelBpp
source§impl PartialOrd for GenCamPixelBpp
impl PartialOrd for GenCamPixelBpp
source§impl Serialize for GenCamPixelBpp
impl Serialize for GenCamPixelBpp
source§impl TryFrom<&PropertyValue> for GenCamPixelBpp
impl TryFrom<&PropertyValue> for GenCamPixelBpp
source§type Error = PropertyError
type Error = PropertyError
The type returned in the event of a conversion error.
source§impl TryFrom<PropertyValue> for GenCamPixelBpp
impl TryFrom<PropertyValue> for GenCamPixelBpp
source§type Error = PropertyError
type Error = PropertyError
The type returned in the event of a conversion error.
impl Copy for GenCamPixelBpp
impl Eq for GenCamPixelBpp
impl StructuralPartialEq for GenCamPixelBpp
Auto Trait Implementations§
impl Freeze for GenCamPixelBpp
impl RefUnwindSafe for GenCamPixelBpp
impl Send for GenCamPixelBpp
impl Sync for GenCamPixelBpp
impl Unpin for GenCamPixelBpp
impl UnwindSafe for GenCamPixelBpp
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)