Struct gimli::read::Expression
source · pub struct Expression<R: Reader>(pub R);
Expand description
The bytecode for a DWARF expression or location description.
Tuple Fields§
§0: R
Implementations§
source§impl<R: Reader> Expression<R>
impl<R: Reader> Expression<R>
sourcepub fn evaluation(self, encoding: Encoding) -> Evaluation<R>
pub fn evaluation(self, encoding: Encoding) -> Evaluation<R>
Create an evaluation for this expression.
The encoding
is determined by the
CompilationUnitHeader
or
TypeUnitHeader
that this expression
relates to.
Examples
use gimli::Expression;
let expression = gimli::Expression(bytecode);
let mut eval = expression.evaluation(unit.encoding());
let mut result = eval.evaluate().unwrap();
sourcepub fn operations(self, encoding: Encoding) -> OperationIter<R>
pub fn operations(self, encoding: Encoding) -> OperationIter<R>
Return an iterator for the operations in the expression.
Trait Implementations§
source§impl<R: Clone + Reader> Clone for Expression<R>
impl<R: Clone + Reader> Clone for Expression<R>
source§fn clone(&self) -> Expression<R>
fn clone(&self) -> Expression<R>
Returns a copy 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<R: PartialEq + Reader> PartialEq<Expression<R>> for Expression<R>
impl<R: PartialEq + Reader> PartialEq<Expression<R>> for Expression<R>
source§fn eq(&self, other: &Expression<R>) -> bool
fn eq(&self, other: &Expression<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.