pub struct Variable {
pub ty: VariableSourceType,
pub index: u32,
pub storage: i64,
}
Expand description
Variables exist within functions at Medium Level IL or higher.
As such, they are to be used within the context of a Function
.
See Function::variable_name
as an example of how to interact with variables.
Fields§
§ty: VariableSourceType
§index: u32
§storage: i64
Implementations§
source§impl Variable
impl Variable
pub fn new(ty: VariableSourceType, index: u32, storage: i64) -> Self
pub fn from_identifier(ident: u64) -> Self
pub fn to_identifier(&self) -> u64
Trait Implementations§
source§impl CoreArrayProvider for Variable
impl CoreArrayProvider for Variable
source§impl From<&BNVariable> for Variable
impl From<&BNVariable> for Variable
source§fn from(value: &BNVariable) -> Self
fn from(value: &BNVariable) -> Self
Converts to this type from the input type.
source§impl From<&Variable> for BNVariable
impl From<&Variable> for BNVariable
source§impl From<BNVariable> for Variable
impl From<BNVariable> for Variable
source§fn from(value: BNVariable) -> Self
fn from(value: BNVariable) -> Self
Converts to this type from the input type.
source§impl From<Variable> for BNVariable
impl From<Variable> for BNVariable
impl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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