Skip to main content

bind_values

Function bind_values 

Source
fn bind_values(
    values: &mut HashMap<String, Target>,
    stmt: &Stmt,
    mutable: &BTreeSet<String>,
)
Expand description

Record what stmt’s bindings name. A let of one immutable name binds the target its value names, if that says more than “anything” and depends on no mut binding (so it is the same value wherever the name is used). Any binding forgets what was known of its name, and of the values computed from it (they were computed from the shadowed one).