Trait falcon::memory::Value[][src]

pub trait Value: Clone + Debug + Eq + PartialEq {
    fn constant(constant: Constant) -> Self;
fn bits(&self) -> usize;
fn shl(&self, bits: usize) -> Result<Self>;
fn shr(&self, bits: usize) -> Result<Self>;
fn trun(&self, bits: usize) -> Result<Self>;
fn zext(&self, bits: usize) -> Result<Self>;
fn or(&self, other: &Self) -> Result<Self>; }

In order for a value to be used in the paged memory model, it must implement this trait.

Required Methods

Turn an il::Constant into a representation of this Value

Return the number of bits contained in this value

Shift the value left by the given number of bits

Shift the value right by the given number of bits

Truncate the value to the given number of bits

Zero-extend the value to the given number of bits

Or this value with the given value

Implementors