#[non_exhaustive]pub enum PropertyLims {
Bool {
default: bool,
},
Int {
min: i64,
max: i64,
step: i64,
default: i64,
},
Float {
min: f64,
max: f64,
step: f64,
default: f64,
},
Unsigned {
min: u64,
max: u64,
step: u64,
default: u64,
},
Duration {
min: Duration,
max: Duration,
step: Duration,
default: Duration,
},
PixelFmt {
variants: Vec<GenCamPixelBpp>,
default: GenCamPixelBpp,
},
EnumStr {
variants: Vec<String>,
default: String,
},
EnumInt {
variants: Vec<i64>,
default: i64,
},
EnumUnsigned {
variants: Vec<u64>,
default: u64,
},
}
Expand description
A property with limits
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.
Bool
A boolean property
Int
An integer property
Fields
Float
A floating point property
Fields
Unsigned
An unsigned integer property
Fields
Duration
A duration property
Fields
PixelFmt
A pixel format property
Fields
§
variants: Vec<GenCamPixelBpp>
The variants of the property
§
default: GenCamPixelBpp
The default value
EnumStr
An enum string property
EnumInt
An enum integer property
EnumUnsigned
An enum unsigned integer property
Trait Implementations§
source§impl Clone for PropertyLims
impl Clone for PropertyLims
source§fn clone(&self) -> PropertyLims
fn clone(&self) -> PropertyLims
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 PropertyLims
impl Debug for PropertyLims
source§impl<'de> Deserialize<'de> for PropertyLims
impl<'de> Deserialize<'de> for PropertyLims
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<&PropertyLims> for PropertyType
impl From<&PropertyLims> for PropertyType
source§fn from(prop: &PropertyLims) -> Self
fn from(prop: &PropertyLims) -> Self
Converts to this type from the input type.
source§impl PartialEq for PropertyLims
impl PartialEq for PropertyLims
source§impl Serialize for PropertyLims
impl Serialize for PropertyLims
impl StructuralPartialEq for PropertyLims
Auto Trait Implementations§
impl Freeze for PropertyLims
impl RefUnwindSafe for PropertyLims
impl Send for PropertyLims
impl Sync for PropertyLims
impl Unpin for PropertyLims
impl UnwindSafe for PropertyLims
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
)