pub enum ValueRepr {
Bit(char),
Bits(u64, String),
String(String),
Tuple,
Struct,
Enum {
idx: usize,
name: String,
},
Array,
NotPresent,
}
Expand description
The representation of the value, compound values can be be represented by the repr of their subfields
Variants§
Bit(char)
Bits(u64, String)
The value is .0
raw bits, and can be translated by further translators
String(String)
The value is exactly the specified string
Tuple
Represent the value as (f1, f2, f3…)
Struct
Represent the value as {f1: v1, f2: v2, f3: v3…}
Enum
Represent as a spade-like enum with the specified field being shown. The index is the index of the option which is currently selected, the name is the name of that option to avoid having to look that up
Array
Represent the value as [f1, f2, f3…]
NotPresent
The variable value is not present. This is used to draw variables which are validated by other variables.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ValueRepr
impl<'de> Deserialize<'de> for ValueRepr
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
Auto Trait Implementations§
impl Freeze for ValueRepr
impl RefUnwindSafe for ValueRepr
impl Send for ValueRepr
impl Sync for ValueRepr
impl Unpin for ValueRepr
impl UnwindSafe for ValueRepr
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