docchi_core/imp/structs/
mut_list_def.rs

1use crate::imp::structs::list_def_obj::ListDefObj;
2
3#[derive(Debug,  Clone, PartialEq)]
4pub struct MutListDef {
5    default: Box<ListDefObj>,
6    undefiable: bool,
7    //compatible : Box<HashS<String>>,
8}
9
10impl MutListDef {
11    pub(crate) fn new(default: ListDefObj, undefiable: bool) -> MutListDef {
12        MutListDef { default: Box::new(default), undefiable }
13    }
14    pub fn default(&self) -> &ListDefObj{ self.default.as_ref() }
15    pub fn undefiable(&self) -> bool{ self.undefiable }
16    //pub(crate) fn compatible(&self) -> &HashS<String>{ self.compatible.as_ref() }
17}
18