cairo_lang_semantic::expr::compute

Function get_binded_expr_by_name

Source
pub fn get_binded_expr_by_name(
    ctx: &mut ComputationContext<'_>,
    variable_name: &SmolStr,
    stable_ptr: ExprPtr,
) -> Option<Expr>
Expand description

Returns the requested variable from the environment if it exists. Returns None otherwise.