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
impl<R: Copy + Reader> Copy for Expression<R>
impl<R: Eq + Reader> Eq for Expression<R>
impl<R: Reader> StructuralEq for Expression<R>
impl<R: Reader> StructuralPartialEq for Expression<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for Expression<R>where
R: RefUnwindSafe,
impl<R> Send for Expression<R>where
R: Send,
impl<R> Sync for Expression<R>where
R: Sync,
impl<R> Unpin for Expression<R>where
R: Unpin,
impl<R> UnwindSafe for Expression<R>where
R: UnwindSafe,
Blanket Implementations§
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.