scheme4r 0.2.3

Scheme interpreter for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::HashMap;

use crate::runtime::Value;

#[derive(Clone, Debug, Default)]
pub struct Library {
    bindings: HashMap<String, Value>,
}

impl Library {
    pub fn new(bindings: HashMap<String, Value>) -> Self {
        Self { bindings }
    }

    pub fn bindings(&self) -> &HashMap<String, Value> {
        &self.bindings
    }
}