nushell/crates/nu-engine/src
Ian Manske 60da7abbc7
Use Vec for Closure captures (#10940)
# Description
Changes the `captures` field in `Closure` from a `HashMap` to a `Vec`
and makes `Stack::captures_to_stack` take an owned `Vec` instead of a
borrowed `HashMap`.

This eliminates the conversion to a `Vec` inside `captures_to_stack` and
makes it possible to avoid clones altogether when using an owned
`Closure` (which is the case for most commands). Additionally, using a
`Vec` reduces the size of `Value` by 8 bytes (down to 72).

# User-Facing Changes
Breaking API change for `nu-protocol`.
2023-11-08 00:43:28 +01:00
..
call_ext.rs Make FromValue take owned Values (#10900) 2023-10-31 19:47:00 +01:00
column.rs Use Record APIs in nu-protocol/nu-engine (#10917) 2023-11-01 23:19:58 +01:00
documentation.rs Add themes to help command when available #10318 (#10623) 2023-10-10 07:40:05 -05:00
env.rs Reuse Closure type in Value::Closure (#10894) 2023-10-30 23:34:23 +01:00
eval.rs Use Vec for Closure captures (#10940) 2023-11-08 00:43:28 +01:00
glob_from.rs fix clippy (#10659) 2023-10-10 03:31:15 +13:00
lib.rs Allow operator in constants (#10212) 2023-09-05 16:35:58 +02:00
scope.rs Use Record APIs in nu-protocol/nu-engine (#10917) 2023-11-01 23:19:58 +01:00