pub enum ValueType {
Unknown,
Continuous {
interpretation: ValueInterpretation,
},
NonContinuous {
values: ValueNames,
interpretation: ValueInterpretation,
},
Table {
interpretation: TableInterpretation,
},
}
Expand description
Describes the type of a VCP value and how to interpret it.
Variants§
Unknown
The type of the data is not known
Continuous
Fields
§
interpretation: ValueInterpretation
Describes how to interpret the continuous value.
The data is a continuous value.
NonContinuous
Fields
§
values: ValueNames
The values allowed or supported to be set, as well as their user-facing names.
§
interpretation: ValueInterpretation
Describes how to interpret the non-continuous value.
The data is a non-continuous value.
Table
Fields
§
interpretation: TableInterpretation
Describes how to interpret the table.
The data is a table (byte array)
Trait Implementations§
source§impl Ord for ValueType
impl Ord for ValueType
source§impl PartialEq<ValueType> for ValueType
impl PartialEq<ValueType> for ValueType
source§impl PartialOrd<ValueType> for ValueType
impl PartialOrd<ValueType> for ValueType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ValueType
impl StructuralEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.