Enum panopticon_core::il::Rvalue [] [src]

pub enum Rvalue {
    Undefined,
    Variable {
        name: Cow<'static, str>,
        subscript: Option<usize>,
        offset: usize,
        size: usize,
    },
    Constant {
        value: u64,
        size: usize,
    },
}

A readable RREIL value.

Variants

Undefined value of unknown length

Variable reference

Fields of Variable

Variable name. Names starting with "__" are reserved.

SSA subscript. This can be set to None in most cases.

First bit of the variable we want to read. Can be set to 0 in most cases.

Number of bits we want to read.

Constant

Fields of Constant

Value

Size in bits

Methods

impl Rvalue
[src]

[src]

Returns a new constant value v of size 1

[src]

Returns a new constant value v of size 8

[src]

Returns a new constant value v of size 16

[src]

Returns a new constant value v of size 32

[src]

Returns a new constant value v of size 64

[src]

Returns the size of the value in bits or None if its undefined.

[src]

Returns a new Rvalue with the first s starting at o.

Trait Implementations

impl Clone for Rvalue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Rvalue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Rvalue
[src]

impl Debug for Rvalue
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Rvalue
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for Rvalue
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Rvalue
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl From<Lvalue> for Rvalue
[src]

[src]

Performs the conversion.

impl FromStr for Rvalue
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for Rvalue
[src]

[src]

Formats the value using the given formatter. Read more

impl Arbitrary for Rvalue
[src]

[src]

[src]