pub enum Value {
Show 17 variants
Void,
Bool(ValueFormat<bool>),
Octet(ValueFormat<u8>),
UShort(ValueFormat<u16>),
Short(ValueFormat<i16>),
ULong(ValueFormat<u32>),
Long(ValueFormat<i32>),
ULong64(ValueFormat<u64>),
Long64(ValueFormat<i64>),
Float(ValueFormat<f32>),
Double(ValueFormat<f64>),
Enum(ValueFormat<DevEnum>),
State(ValueFormat<DevState>),
String(ValueFormat<str>),
LongString(Spectrum<i32>, Spectrum<str>),
DoubleString(Spectrum<f64>, Spectrum<str>),
Encoded(DevEncoded),
}Expand description
Variants§
Void
Bool(ValueFormat<bool>)
Octet(ValueFormat<u8>)
UShort(ValueFormat<u16>)
Short(ValueFormat<i16>)
ULong(ValueFormat<u32>)
Long(ValueFormat<i32>)
ULong64(ValueFormat<u64>)
Long64(ValueFormat<i64>)
Float(ValueFormat<f32>)
Double(ValueFormat<f64>)
Enum(ValueFormat<DevEnum>)
State(ValueFormat<DevState>)
String(ValueFormat<str>)
LongString(Spectrum<i32>, Spectrum<str>)
The DevVarLongStringArray a command may take or give.
DoubleString(Spectrum<f64>, Spectrum<str>)
The DevVarDoubleStringArray a command may take or give.
Encoded(DevEncoded)
A DevEncoded, which only exists as a scalar.
Trait Implementations§
Source§impl<T: TangoElement + PackedElement> From<&[T]> for Value
impl<T: TangoElement + PackedElement> From<&[T]> for Value
Source§impl<T: TangoElement + PackedElement> From<Box<[T]>> for Value
impl<T: TangoElement + PackedElement> From<Box<[T]>> for Value
Source§impl From<DevEncoded> for Value
impl From<DevEncoded> for Value
Source§fn from(encoded: DevEncoded) -> Self
fn from(encoded: DevEncoded) -> Self
Converts to this type from the input type.
Source§impl<T: TangoElement + PackedElement> From<T> for Value
impl<T: TangoElement + PackedElement> From<T> for Value
Source§impl<T: TangoElement + PackedElement> From<Vec<T>> for Value
impl<T: TangoElement + PackedElement> From<Vec<T>> for Value
Source§impl<T: TangoElement + PackedElement, const N: usize> From<[T; N]> for Value
impl<T: TangoElement + PackedElement, const N: usize> From<[T; N]> for Value
impl StructuralPartialEq for Value
Source§impl<'a, T: TangoElement + PackedElement> TryFrom<&'a Value> for &'a [T]
impl<'a, T: TangoElement + PackedElement> TryFrom<&'a Value> for &'a [T]
Source§impl<'a> TryFrom<&'a Value> for &'a DevEncoded
impl<'a> TryFrom<&'a Value> for &'a DevEncoded
Source§impl<T: TangoElement + PackedElement> TryFrom<Value> for Vec<T>
impl<T: TangoElement + PackedElement> TryFrom<Value> for Vec<T>
Source§impl<T: TangoElement + PackedElement> TryFrom<Value> for Box<[T]>
impl<T: TangoElement + PackedElement> TryFrom<Value> for Box<[T]>
Source§impl<T: TangoElement + PackedElement, const N: usize> TryFrom<Value> for [T; N]
impl<T: TangoElement + PackedElement, const N: usize> TryFrom<Value> for [T; N]
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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