Struct cairo_lang_lowering::borrow_check::Demand
source · pub struct Demand {
pub vars: OrderedHashSet<VariableId>,
}
Expand description
Demanded variables from a certain point in the flow until the end of the function.
Fields§
§vars: OrderedHashSet<VariableId>
Implementations§
source§impl Demand
impl Demand
sourcepub fn variables_used(
&mut self,
borrow_checker: &mut BorrowChecker<'_>,
vars: &[VariableId]
)
pub fn variables_used( &mut self, borrow_checker: &mut BorrowChecker<'_>, vars: &[VariableId] )
Updates the demand when some variables are used right before the current flow.
sourcepub fn variables_introduced(
&mut self,
borrow_checker: &mut BorrowChecker<'_>,
vars: &[VariableId]
)
pub fn variables_introduced( &mut self, borrow_checker: &mut BorrowChecker<'_>, vars: &[VariableId] )
Updates the demand when some variables are introduced right before the current flow.