Struct gimli::Expression
[−]
[src]
pub struct Expression<R: Reader>(pub R);
The bytecode for a DWARF expression or location description.
Methods
impl<R: Reader> Expression<R>
[src]
fn evaluation(self, address_size: u8, format: Format) -> Evaluation<R>
Create an evaluation for this expression.
The address_size
and format
are 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.address_size(), unit.format()); let mut result = eval.evaluate().unwrap();
Trait Implementations
impl<R: Debug + Reader> Debug for Expression<R>
[src]
impl<R: Clone + Reader> Clone for Expression<R>
[src]
fn clone(&self) -> Expression<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R: Copy + Reader> Copy for Expression<R>
[src]
impl<R: PartialEq + Reader> PartialEq for Expression<R>
[src]
fn eq(&self, __arg_0: &Expression<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Expression<R>) -> bool
This method tests for !=
.