[][src]Struct gimli::read::Expression

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

The bytecode for a DWARF expression or location description.

Implementations

impl<R: Reader> Expression<R>[src]

pub fn evaluation(self, encoding: Encoding) -> Evaluation<R>[src]

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>[src]

Return an iterator for the operations in the expression.

Trait Implementations

impl<R: Clone + Reader> Clone for Expression<R>[src]

impl<R: Copy + Reader> Copy for Expression<R>[src]

impl<R: Debug + Reader> Debug for Expression<R>[src]

impl<R: Eq + Reader> Eq for Expression<R>[src]

impl<R: Hash + Reader> Hash for Expression<R>[src]

impl<R: PartialEq + Reader> PartialEq<Expression<R>> for Expression<R>[src]

impl<R: Reader> StructuralEq for Expression<R>[src]

impl<R: Reader> StructuralPartialEq for Expression<R>[src]

Auto Trait Implementations

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

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.