forked from extern/nushell
* Split closures and blocks * Tests mostly working * finish last fixes, passes all tests * fmt
15 lines
257 B
Rust
15 lines
257 B
Rust
use std::collections::HashMap;
|
|
|
|
use crate::{BlockId, Value, VarId};
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub struct Closure {
|
|
pub block_id: BlockId,
|
|
pub captures: HashMap<VarId, Value>,
|
|
}
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub struct Block {
|
|
pub block_id: BlockId,
|
|
}
|