rust_multistack 0.33.0

Support for two-dimentional stacks for the Rust programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::ts::TS;

impl TS {

    pub fn stack_capacity(&self, name: String) -> Option<usize> {
        if self.stack_cap.contains_key(&name) {
            match self.stack_cap.get(&name) {
                Some(cap) => {
                    return Some(*cap);
                }
                None => {
                    return None;
                }
            }
        }
        None
    }
}