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 moreimpl<R: Copy + Reader> Copy for Expression<R>
impl<R: Eq + Reader> Eq for Expression<R>
impl<R: Reader> StructuralPartialEq for Expression<R>
Auto Trait Implementations§
impl<R> Freeze for Expression<R>where
R: Freeze,
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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.