[]Struct symbolic::debuginfo::dwarf::gimli::Expression

pub struct Expression<R>(pub R)
where
    R: Reader
;

The bytecode for a DWARF expression or location description.

Implementations

impl<R> Expression<R> where
    R: Reader

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();

pub fn operations(self, encoding: Encoding) -> OperationIter<R>

Return an iterator for the operations in the expression.

Trait Implementations

impl<R> Clone for Expression<R> where
    R: Reader + Clone

impl<R> Copy for Expression<R> where
    R: Reader + Copy

impl<R> Debug for Expression<R> where
    R: Reader + Debug

impl<R> Eq for Expression<R> where
    R: Reader + Eq

impl<R> Hash for Expression<R> where
    R: Reader + Hash

impl<R> PartialEq<Expression<R>> for Expression<R> where
    R: Reader + PartialEq<R>, 

impl<R> StructuralEq for Expression<R> where
    R: Reader

impl<R> StructuralPartialEq for Expression<R> where
    R: Reader

Auto Trait Implementations

impl<R> RefUnwindSafe for Expression<R> where
    R: RefUnwindSafe
[src]

impl<R> Send for Expression<R> where
    R: Send
[src]

impl<R> Sync for Expression<R> where
    R: Sync
[src]

impl<R> Unpin for Expression<R> where
    R: Unpin
[src]

impl<R> UnwindSafe for Expression<R> where
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.