pub struct NumericRange {
pub min: f64,
pub max: f64,
pub inc: Option<f64>,
}Expand description
Numeric range for an Integer or Float feature at the current camera state.
min/max are resolved from the XML’s static declaration, from pMin/pMax
references when present, or from selector-dependent rules. Services that
cannot resolve the range must omit FeatureState::numeric entirely rather
than invent defaults like i64::MIN..=i64::MAX (the UI renders “range
unknown” in that case).
Fields§
§min: f64§max: f64§inc: Option<f64>Optional increment (step). Omitted when the feature has no grid.
Trait Implementations§
Source§impl Clone for NumericRange
impl Clone for NumericRange
Source§fn clone(&self) -> NumericRange
fn clone(&self) -> NumericRange
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 moreSource§impl Debug for NumericRange
impl Debug for NumericRange
Source§impl<'de> Deserialize<'de> for NumericRange
impl<'de> Deserialize<'de> for NumericRange
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 PartialEq for NumericRange
impl PartialEq for NumericRange
Source§fn eq(&self, other: &NumericRange) -> bool
fn eq(&self, other: &NumericRange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NumericRange
impl Serialize for NumericRange
impl StructuralPartialEq for NumericRange
Auto Trait Implementations§
impl Freeze for NumericRange
impl RefUnwindSafe for NumericRange
impl Send for NumericRange
impl Sync for NumericRange
impl Unpin for NumericRange
impl UnsafeUnpin for NumericRange
impl UnwindSafe for NumericRange
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