Struct falcon::il::Intrinsic [−][src]
pub struct Intrinsic { /* fields omitted */ }
An Instrinsic is a lifted instruction Falcon cannot model.
Methods
impl Intrinsic
[src]
impl Intrinsic
pub fn new<S: Into<String>, SS: Into<String>>(
mnemonic: S,
instruction_str: SS,
arguments: Vec<Expression>,
written_expressions: Option<Vec<Expression>>,
read_expressions: Option<Vec<Expression>>,
bytes: Vec<u8>
) -> Intrinsic
[src]
pub fn new<S: Into<String>, SS: Into<String>>(
mnemonic: S,
instruction_str: SS,
arguments: Vec<Expression>,
written_expressions: Option<Vec<Expression>>,
read_expressions: Option<Vec<Expression>>,
bytes: Vec<u8>
) -> Intrinsic
Create a new intrinsic instruction.
pub fn mnemonic(&self) -> &str
[src]
pub fn mnemonic(&self) -> &str
Get the mnemonic for the instruction this intrinsic represents.
pub fn instruction_str(&self) -> &str
[src]
pub fn instruction_str(&self) -> &str
Get the full disassembly string, mnemonic and operands, for the instruction this intrinsic represents.
pub fn arguments(&self) -> &[Expression]
[src]
pub fn arguments(&self) -> &[Expression]
Get the arguments for the intrinsic. Intrinsic-dependent.
pub fn written_expressions(&self) -> Option<&[Expression]>
[src]
pub fn written_expressions(&self) -> Option<&[Expression]>
Get the expressions which are written by this intrinsic.
If this is None, the expressions written by this intrinsic are undefined, and for soundness you should assume the intrinsic does anything.
pub fn written_expressions_mut(&mut self) -> Option<&mut [Expression]>
[src]
pub fn written_expressions_mut(&mut self) -> Option<&mut [Expression]>
Get a mutable reference to the expressions which are written by this intrinsic.
Caveats for written_expressions
apply here.
pub fn read_expressions(&self) -> Option<&[Expression]>
[src]
pub fn read_expressions(&self) -> Option<&[Expression]>
Get the expressions which are read by this intrinsic.
If this is None, the expressions read by this intrinsic are undefined, and for soundness you should assume the intrinsic reads any expression.
pub fn read_expressions_mut(&mut self) -> Option<&mut [Expression]>
[src]
pub fn read_expressions_mut(&mut self) -> Option<&mut [Expression]>
Get a mutable reference to the expressions which are read by this intrinsic.
Caveats for read_expressions
apply here.
pub fn scalars_written(&self) -> Option<Vec<&Scalar>>
[src]
pub fn scalars_written(&self) -> Option<Vec<&Scalar>>
Get the scalars which are written by this intrinsic.
These are the scalars contained in the written expressions. Caveats for
written_expressions
apply here.
pub fn scalars_written_mut(&mut self) -> Option<Vec<&mut Scalar>>
[src]
pub fn scalars_written_mut(&mut self) -> Option<Vec<&mut Scalar>>
Get a mutable reference to the scalars written by this intrinsic.
This is a mutable reference to the scalars contained in the written
expressions. Caveats for written_expressions
apply here.
pub fn scalars_read(&self) -> Option<Vec<&Scalar>>
[src]
pub fn scalars_read(&self) -> Option<Vec<&Scalar>>
Get the scalared read by this intrinsic.
These are the scalars in the expressions read by this intrinsic.
Caveats for read_expressions
apply here.
pub fn scalars_read_mut(&mut self) -> Option<Vec<&mut Scalar>>
[src]
pub fn scalars_read_mut(&mut self) -> Option<Vec<&mut Scalar>>
Get a mutable reference to the scalars written by this inrinsic.
These are the scalars in the expression written by this intrinsic.
Caveats for read_expressions
apply here.
pub fn bytes(&self) -> &[u8]
[src]
pub fn bytes(&self) -> &[u8]
Get the bytes which make up this instruction.
These are the undisassembled bytes, as found in the lifted binary.
Trait Implementations
impl Clone for Intrinsic
[src]
impl Clone for Intrinsic
fn clone(&self) -> Intrinsic
[src]
fn clone(&self) -> Intrinsic
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)
Performs copy-assignment from source
. Read more
impl Debug for Intrinsic
[src]
impl Debug for Intrinsic
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Intrinsic
[src]
impl Eq for Intrinsic
impl Hash for Intrinsic
[src]
impl Hash for Intrinsic
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for Intrinsic
[src]
impl Ord for Intrinsic
fn cmp(&self, other: &Intrinsic) -> Ordering
[src]
fn cmp(&self, other: &Intrinsic) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for Intrinsic
[src]
impl PartialEq for Intrinsic
fn eq(&self, other: &Intrinsic) -> bool
[src]
fn eq(&self, other: &Intrinsic) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Intrinsic) -> bool
[src]
fn ne(&self, other: &Intrinsic) -> bool
This method tests for !=
.
impl PartialOrd for Intrinsic
[src]
impl PartialOrd for Intrinsic
fn partial_cmp(&self, other: &Intrinsic) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Intrinsic) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Intrinsic) -> bool
[src]
fn lt(&self, other: &Intrinsic) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Intrinsic) -> bool
[src]
fn le(&self, other: &Intrinsic) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Intrinsic) -> bool
[src]
fn gt(&self, other: &Intrinsic) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Intrinsic) -> bool
[src]
fn ge(&self, other: &Intrinsic) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Display for Intrinsic
[src]
impl Display for Intrinsic