pub enum Slope {
Increasing,
Decreasing,
Varying,
Automatic,
}Expand description
How a converter’s <FormulaFrom> moves with its raw value.
GenICam Standard v2.1.1 §2.8.13: <Slope> “indicates if the formula is
monotonously Increasing or Decreasing, if it is Varying (in this case the
full number range is used), or if the slope is determined in an Automatic
way by probing the function”. It decides how the raw node’s minimum and
maximum map onto the converter’s: a decreasing formula turns the raw
maximum into the feature’s minimum. §3.2 makes Automatic the default.
Variants§
Increasing
The feature value grows with the raw value.
Decreasing
The feature value falls as the raw value grows.
Varying
Neither: the converter’s range is the full number range.
Automatic
Found by evaluating the formula at the raw bounds.
Trait Implementations§
impl Copy for Slope
Source§impl<'de> Deserialize<'de> for Slope
impl<'de> Deserialize<'de> for Slope
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
impl Eq for Slope
impl StructuralPartialEq for Slope
Auto Trait Implementations§
impl Freeze for Slope
impl RefUnwindSafe for Slope
impl Send for Slope
impl Sync for Slope
impl Unpin for Slope
impl UnsafeUnpin for Slope
impl UnwindSafe for Slope
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