Skip to main content

operands

Function operands 

Source
pub(crate) fn operands(
    stmt: &Stmt,
    fresh: &mut usize,
) -> Option<(Vec<Stmt>, Stmt)>
Expand description

Hoist the awaited operands of a call, method call, assignment, array, tuple or vec! into bindings, together with any earlier operands that are not pure, so they still evaluate in order. Also hoists an awaited method receiver (x.await?.items()), which evaluates first. fresh numbers the new bindings.