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]
impl<R: Reader> Expression<R>pub fn evaluation(self, address_size: u8, format: Format) -> Evaluation<R>[src]
pub 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: Debug + Reader> Debug for Expression<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: Clone + Reader> Clone for Expression<R>[src]
impl<R: Clone + Reader> Clone for Expression<R>fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<R: Copy + Reader> Copy for Expression<R>[src]
impl<R: Copy + Reader> Copy for Expression<R>impl<R: PartialEq + Reader> PartialEq for Expression<R>[src]
impl<R: PartialEq + Reader> PartialEq for Expression<R>fn eq(&self, other: &Expression<R>) -> bool[src]
fn eq(&self, other: &Expression<R>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Expression<R>) -> bool[src]
fn ne(&self, other: &Expression<R>) -> boolThis method tests for !=.
impl<R: Eq + Reader> Eq for Expression<R>[src]
impl<R: Eq + Reader> Eq for Expression<R>impl<R: Hash + Reader> Hash for Expression<R>[src]
impl<R: Hash + Reader> Hash for Expression<R>Auto Trait Implementations
impl<R> Send for Expression<R> where
R: Send,
impl<R> Send for Expression<R> where
R: Send, impl<R> Sync for Expression<R> where
R: Sync,
impl<R> Sync for Expression<R> where
R: Sync,