nu-protocol 0.75.0

Nushell's internal protocols, including its abstract syntax tree
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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,
}