pub enum ValueRecord {
Show 14 variants
Int {
i: i64,
type_id: TypeId,
},
Float {
f: f64,
type_id: TypeId,
},
Bool {
b: bool,
type_id: TypeId,
},
String {
text: String,
type_id: TypeId,
},
Sequence {
elements: Vec<ValueRecord>,
is_slice: bool,
type_id: TypeId,
},
Tuple {
elements: Vec<ValueRecord>,
type_id: TypeId,
},
Struct {
field_values: Vec<ValueRecord>,
type_id: TypeId,
},
Variant {
discriminator: String,
contents: Box<ValueRecord>,
type_id: TypeId,
},
Reference {
dereferenced: Box<ValueRecord>,
address: u64,
mutable: bool,
type_id: TypeId,
},
Raw {
r: String,
type_id: TypeId,
},
Error {
msg: String,
type_id: TypeId,
},
None {
type_id: TypeId,
},
Cell {
place: Place,
},
BigInt {
b: Vec<u8>,
negative: bool,
type_id: TypeId,
},
}Expand description
Representation of a runtime value captured in a trace.
Variants§
Trait Implementations§
Source§impl Clone for ValueRecord
impl Clone for ValueRecord
Source§fn clone(&self) -> ValueRecord
fn clone(&self) -> ValueRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 ValueRecord
impl Debug for ValueRecord
Source§impl<'de> Deserialize<'de> for ValueRecord
impl<'de> Deserialize<'de> for ValueRecord
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
Source§impl PartialEq for ValueRecord
impl PartialEq for ValueRecord
Source§impl Serialize for ValueRecord
impl Serialize for ValueRecord
impl StructuralPartialEq for ValueRecord
Auto Trait Implementations§
impl Freeze for ValueRecord
impl RefUnwindSafe for ValueRecord
impl Send for ValueRecord
impl Sync for ValueRecord
impl Unpin for ValueRecord
impl UnwindSafe for ValueRecord
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