pub enum DataValue<M: IsParameterMask> {
Boolean(bool),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
ParameterMask(M),
}
Variants§
Boolean(bool)
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
ParameterMask(M)
Implementations§
Source§impl DataValue<u64>
impl DataValue<u64>
pub fn to_descriptive<P>(&self, parameters: P) -> Result<DataValueDescriptive>where
u64: DeconstructParameterMask<P>,
Trait Implementations§
Source§impl<M: IsParameterMask, R: IsModuleChannelReference> From<DataValue<M>> for ParameterValue<M, R>
impl<M: IsParameterMask, R: IsModuleChannelReference> From<DataValue<M>> for ParameterValue<M, R>
Source§fn from(v: DataValue<M>) -> ParameterValue<M, R>
fn from(v: DataValue<M>) -> ParameterValue<M, R>
Converts to this type from the input type.
Source§impl<M: IsParameterMask> HasDataType for DataValue<M>
impl<M: IsParameterMask> HasDataType for DataValue<M>
Source§impl<M: Ord + IsParameterMask> Ord for DataValue<M>
impl<M: Ord + IsParameterMask> Ord for DataValue<M>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<M: PartialOrd + IsParameterMask> PartialOrd for DataValue<M>
impl<M: PartialOrd + IsParameterMask> PartialOrd for DataValue<M>
Source§impl<M: IsParameterMask> TryConvertTo<DataType> for DataValue<M>
impl<M: IsParameterMask> TryConvertTo<DataType> for DataValue<M>
impl<M: Eq + IsParameterMask> Eq for DataValue<M>
impl<M: IsParameterMask> StructuralPartialEq for DataValue<M>
Auto Trait Implementations§
impl<M> Freeze for DataValue<M>where
M: Freeze,
impl<M> RefUnwindSafe for DataValue<M>where
M: RefUnwindSafe,
impl<M> Send for DataValue<M>where
M: Send,
impl<M> Sync for DataValue<M>where
M: Sync,
impl<M> Unpin for DataValue<M>where
M: Unpin,
impl<M> UnwindSafe for DataValue<M>where
M: UnwindSafe,
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> 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.