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
The data is a continuous value.
Fields
§
interpretation: ValueInterpretation
Describes how to interpret the continuous value.
NonContinuous
The data is a non-continuous value.
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.
Table
The data is a table (byte array)
Fields
§
interpretation: TableInterpretation
Describes how to interpret the table.
Trait Implementations§
Source§impl Ord for ValueType
impl Ord for ValueType
Source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.