pub enum ConversionType {
Show 13 variants
Identity,
Linear,
Rational,
Algebraic,
TableLookupInterp,
TableLookupNoInterp,
RangeLookup,
ValueToText,
RangeToText,
TextToValue,
TextToText,
BitfieldText,
Unknown(u8),
}Expand description
Represents the conversion type (cc_type) from a conversion block.
Variants§
Identity
0: 1:1 conversion (no change)
Linear
1: Linear conversion
Rational
2: Rational conversion
Algebraic
3: Algebraic conversion (MCD-2 MC text formula)
TableLookupInterp
4: Value to value tabular look-up with interpolation
TableLookupNoInterp
5: Value to value tabular look-up without interpolation
RangeLookup
6: Value range to value tabular look-up
ValueToText
7: Value to text/scale conversion tabular look-up
RangeToText
8: Value range to text/scale conversion tabular look-up
TextToValue
9: Text to value tabular look-up
TextToText
10: Text to text tabular look-up (translation)
BitfieldText
11: Bitfield text table
Unknown(u8)
For any other unrecognized conversion type.
Implementations§
Trait Implementations§
Source§impl Clone for ConversionType
impl Clone for ConversionType
Source§fn clone(&self) -> ConversionType
fn clone(&self) -> ConversionType
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 ConversionType
impl Debug for ConversionType
Source§impl<'de> Deserialize<'de> for ConversionType
impl<'de> Deserialize<'de> for ConversionType
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 Display for ConversionType
impl Display for ConversionType
Source§impl PartialEq for ConversionType
impl PartialEq for ConversionType
Source§impl Serialize for ConversionType
impl Serialize for ConversionType
impl Copy for ConversionType
impl Eq for ConversionType
impl StructuralPartialEq for ConversionType
Auto Trait Implementations§
impl Freeze for ConversionType
impl RefUnwindSafe for ConversionType
impl Send for ConversionType
impl Sync for ConversionType
impl Unpin for ConversionType
impl UnwindSafe for ConversionType
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