pub struct ControlRange {
pub min: f64,
pub max: f64,
pub step: Option<f64>,
pub default: Option<ControlValue>,
}Expand description
Numeric limits and optional default for a camera control.
Fields§
§min: f64The min value.
max: f64The max value.
step: Option<f64>The step value.
default: Option<ControlValue>The default value.
Trait Implementations§
Source§impl Clone for ControlRange
impl Clone for ControlRange
Source§fn clone(&self) -> ControlRange
fn clone(&self) -> ControlRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlRange
impl RefUnwindSafe for ControlRange
impl Send for ControlRange
impl Sync for ControlRange
impl Unpin for ControlRange
impl UnsafeUnpin for ControlRange
impl UnwindSafe for ControlRange
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