pub enum DynamicValue {
}Expand description
Sum type for all values storable in DynamicData. Spec §7.5.6 speaks of 12 primitive types + composite + sequence — this enum encapsulates the storage.
Variants§
Bool(bool)
bool.
Byte(u8)
8-bit unsigned (octet).
Int8(i8)
int8.
UInt8(u8)
uint8.
Int16(i16)
int16.
UInt16(u16)
uint16.
Int32(i32)
int32.
UInt32(u32)
uint32.
Int64(i64)
int64.
UInt64(u64)
uint64.
Float32(f32)
float.
Float64(f64)
double.
Char8(u8)
char.
Char16(u16)
wchar.
String(String)
string.
WString(Vec<u16>)
wstring (UTF-16 as Vec
Complex(Box<DynamicData>)
Composite or sequence — embedded DynamicData.
Sequence(Vec<DynamicData>)
Sequence of DynamicData (spec: the element type is known from the containerizing TypeDescriptor).
None
Discard / not set (the default value is returned).
Trait Implementations§
Source§impl Clone for DynamicValue
impl Clone for DynamicValue
Source§fn clone(&self) -> DynamicValue
fn clone(&self) -> DynamicValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicValue
impl Debug for DynamicValue
Source§impl PartialEq for DynamicValue
impl PartialEq for DynamicValue
Auto Trait Implementations§
impl Freeze for DynamicValue
impl RefUnwindSafe for DynamicValue
impl Send for DynamicValue
impl Sync for DynamicValue
impl Unpin for DynamicValue
impl UnsafeUnpin for DynamicValue
impl UnwindSafe for DynamicValue
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