nu_protocol/engine/
capture_block.rs

1
2
3
4
5
6
7
8
9
use crate::{BlockId, Value, VarId};

use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Closure {
    pub block_id: BlockId,
    pub captures: Vec<(VarId, Value)>,
}