Enum rust_debug::evaluate::evaluate::EvaluatorValue[][src]

pub enum EvaluatorValue<R: Reader<Offset = usize>> {
Show 14 variants Value(BaseTypeValueValueInformation), PointerTypeValue(Box<PointerTypeValue<R>>), VariantValue(Box<VariantValue<R>>), VariantPartValue(Box<VariantPartValue<R>>), SubrangeTypeValue(SubrangeTypeValue), Bytes(R), Array(Box<ArrayTypeValue<R>>), Struct(Box<StructureTypeValue<R>>), Enum(Box<EnumerationTypeValue<R>>), Union(Box<UnionTypeValue<R>>), Member(Box<MemberValue<R>>), OptimizedOut, LocationOutOfRange, ZeroSize,
}
Expand description

Describes all the different Rust types values in the form of a tree structure.

Variants

A base_type type and value with location information.

Tuple Fields of Value

0: BaseTypeValue1: ValueInformation
PointerTypeValue(Box<PointerTypeValue<R>>)

A pointer_type type and value.

Tuple Fields of PointerTypeValue

0: Box<PointerTypeValue<R>>
VariantValue(Box<VariantValue<R>>)

A variant type and value.

Tuple Fields of VariantValue

0: Box<VariantValue<R>>
VariantPartValue(Box<VariantPartValue<R>>)

A variant_part type and value.

Tuple Fields of VariantPartValue

0: Box<VariantPartValue<R>>
SubrangeTypeValue(SubrangeTypeValue)

A subrange_type type and value.

Tuple Fields of SubrangeTypeValue

0: SubrangeTypeValue
Bytes(R)

gimli-rs bytes value.

Tuple Fields of Bytes

0: R
Array(Box<ArrayTypeValue<R>>)

A array type value.

Tuple Fields of Array

0: Box<ArrayTypeValue<R>>

A struct type value.

Tuple Fields of Struct

0: Box<StructureTypeValue<R>>

A enum type value.

Tuple Fields of Enum

0: Box<EnumerationTypeValue<R>>
Union(Box<UnionTypeValue<R>>)

A union type value.

Tuple Fields of Union

0: Box<UnionTypeValue<R>>
Member(Box<MemberValue<R>>)

A attribute type value.

Tuple Fields of Member

0: Box<MemberValue<R>>
OptimizedOut

The value is optimized away.

LocationOutOfRange

The variable has no location currently but had or will have one. Note that the location can be a constant stored in the DWARF stack.

ZeroSize

The value is size 0 bits.

Implementations

Will return this value as a BaseTypeValue struct if possible.

Will return the type of this value as a String.

Will return a Vec of location and unparsed value infromation about the value.

Evaluate a list of Pieces into a value and parse it to the given type.

Description:

  • dwarf - A reference to gimli-rs Dwarf struct.
  • registers - A register struct for accessing the register values.
  • mem - A struct for accessing the memory of the debug target.
  • pieces - A list of gimli-rs pieces containing the location information..
  • unit_offset - A offset to the Unit which contains the given type DIE.
  • die_offset - A offset to the DIE that contains the type of the value.

This function will use the location information in the pieces parameter to read the values and parse it to the given type.

This function will evaluate the given pieces into a unsigned 32 bit integer.

Description:

  • registers - A register struct for accessing the register values.
  • mem - A struct for accessing the memory of the debug target.
  • pieces - A list of gimli-rs pieces containing the location information..

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.