#[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 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 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,Bpp8
is 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