pub enum RValue {
Show 17 variants
Unit,
Prim(PValue),
Bytes {
typename: String,
value: Vec<u8>,
},
Ref {
typename: RefType,
addr: RefAddr,
value: Box<RValue>,
},
DynRef {
typename: String,
addr: RefAddr,
vtable: RefAddr,
value: Box<RValue>,
},
RefCounted {
typename: RefCountedType,
addr: RefAddr,
strong: u64,
weak: u64,
value: Box<RValue>,
},
DynRefCounted {
typename: String,
addr: RefAddr,
strong: u64,
weak: u64,
vtable: RefAddr,
value: Box<RValue>,
},
UnresolvedRef {
addr: RefAddr,
},
Struct {
typename: String,
fields: IndexMap<String, RValue>,
},
Tuple {
typename: String,
items: Vec<RValue>,
},
Enum {
typename: String,
variant: String,
},
String {
typename: StringType,
value: String,
},
Union {
typeinfo: UnionType,
variant: String,
fields: IndexMap<String, RValue>,
},
Option {
typename: String,
variant: String,
value: Option<Box<RValue>>,
},
Result {
typename: String,
variant: String,
value: Box<RValue>,
},
Array {
typename: ArrayType,
data: Vec<RValue>,
},
Opaque,
}Expand description
A representation of Rust Value
Variants§
Unit
Aka ()
Prim(PValue)
Bytes
Ref
This includes a simple &v, as well as Box and *const
DynRef
&dyn or Box
RefCounted
Rc or Arc
DynRefCounted
Rc
UnresolvedRef
Struct
Tuple
Enum
String
Union
Option
Result
Array
Opaque
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RValue
impl<'de> Deserialize<'de> for RValue
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
impl StructuralPartialEq for RValue
Auto Trait Implementations§
impl Freeze for RValue
impl RefUnwindSafe for RValue
impl Send for RValue
impl Sync for RValue
impl Unpin for RValue
impl UnwindSafe for RValue
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