Struct cwe_checker_lib::pcode::ExternSymbol
source · pub struct ExternSymbol {
pub tid: Tid,
pub addresses: Vec<String>,
pub name: String,
pub calling_convention: Option<String>,
pub arguments: Vec<Arg>,
pub no_return: bool,
pub has_var_args: bool,
}
Expand description
An extern symbol, i.e. a function not contained in the binary but loaded from a shared library.
Fields§
§tid: Tid
The term identifier of the extern symbol.
addresses: Vec<String>
The addresses to call the extern symbol. May be more than one, since we also identify thunk functions calling the extern symbol with the symbol itself.
name: String
The name of the extern symbol.
calling_convention: Option<String>
The calling convention used (as reported by Ghidra, i.e. this may not be correct).
arguments: Vec<Arg>
The input and output arguments of the function.
no_return: bool
If the function is assumed to never return to the caller, this flag is set to true
.
has_var_args: bool
If the function has a variable number of parameters, this flag is set to true
.
Trait Implementations§
source§impl Clone for ExternSymbol
impl Clone for ExternSymbol
source§fn clone(&self) -> ExternSymbol
fn clone(&self) -> ExternSymbol
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExternSymbol
impl Debug for ExternSymbol
source§impl<'de> Deserialize<'de> for ExternSymbol
impl<'de> Deserialize<'de> for ExternSymbol
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ExternSymbol
impl Hash for ExternSymbol
source§impl PartialEq for ExternSymbol
impl PartialEq for ExternSymbol
source§fn eq(&self, other: &ExternSymbol) -> bool
fn eq(&self, other: &ExternSymbol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExternSymbol
impl Serialize for ExternSymbol
impl Eq for ExternSymbol
impl StructuralEq for ExternSymbol
impl StructuralPartialEq for ExternSymbol
Auto Trait Implementations§
impl RefUnwindSafe for ExternSymbol
impl Send for ExternSymbol
impl Sync for ExternSymbol
impl Unpin for ExternSymbol
impl UnwindSafe for ExternSymbol
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.